]> dgit.raspbian.org Git - git-annex.git/commitdiff
comment
authorJoey Hess <joeyh@joeyh.name>
Thu, 23 Dec 2021 18:03:04 +0000 (14:03 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 23 Dec 2021 18:03:04 +0000 (14:03 -0400)
doc/forum/export_tracking_not_enabled_when_branch_is_set/comment_2_12c90792bd8c0c37bc53806843583733._comment [new file with mode: 0644]

diff --git a/doc/forum/export_tracking_not_enabled_when_branch_is_set/comment_2_12c90792bd8c0c37bc53806843583733._comment b/doc/forum/export_tracking_not_enabled_when_branch_is_set/comment_2_12c90792bd8c0c37bc53806843583733._comment
new file mode 100644 (file)
index 0000000..01365f6
--- /dev/null
@@ -0,0 +1,31 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2021-12-23T17:45:07Z"
+ content="""
+> Hmm, I think the most likely reason is that master:devices/motoE5
+> does not exist yet, so it fails to list the tree for it.
+
+Seems it is not that. I tried it and following
+[[tips/android_sync_with_adb]] works, and that tip
+has initremote followed by configuring annex-tracking-branch,
+followed by git-annex sync.
+
+Aha! I was able to reproduce it by following that tip, but only
+configure the remote with exporttree=yes, while leaving off the
+importtree=yes.
+
+       git init foo
+       cd foo
+       git-annex init
+       git-annex initremote d type=directory directory=../d encryption=none exporttree=yes
+       git config remote.d.annex-tracking-branch master:d
+       touch foo
+       git annex add foo
+       git-annex sync --content d
+
+So the problem is that it is unable to read the export commit for the
+tracking branch, because it has not imported from the remote.
+
+First running `git-annex export` does work around this problem.
+"""]]