bug report

This commit is contained in:
Joey Hess 2023-02-10 15:32:09 -04:00
parent c2b3e870df
commit 5c6e1f5178
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,14 @@
git-annex initremote d type=directory directory=../d exporttree=yes importtree=yes encryption=none
git config remote.d.annex-tracking-branch master
date > ../d/foo
git checkout -b bar
git-annex sync --content d
This will import foo from d, but then it unexports foo from d.
Not quite data loss, because it does honor numcopies and the local copy
remains. But bad.
The problem seems to be that it assumes it's merged d/master into master, but
that does not happen since master is not the current branch. And so it then
updates d to look like master. --[[Joey]]