Closed mih closed 2 years ago
This is possibly related to
git-annex (10.20220724) UNRELEASED; urgency=medium
* add: Fix reversion when adding an annex link that has been moved to
another directory. (Introduced in version 10.20220624)
So maybe a fix is coming.
please unpin and check if works? that release has come
Tested to be broken with 10.20220526-gc6b112108 (linux) and 10.20220624 (brew) -- last known-to-work version is 10.20220504.
Revealed by https://github.com/datalad/datalad-ukbiobank/pull/87
The path to the situation that shows the issue is a bit complicated, and I failed to find a minimal reproducer. However, within the failing test, this is the situation:
Essentially, the untracked file is a moved/renamed annex-symlink. It was "imported" from another branch via
git read-tree -u --reset <otherbranch>
, and unstaged viagit reset HEAD .
, then renamed. The followingannex add
call shown above fails.The full debug log, does not reveal anything interesting in addition: