fix git-annex add regression on deleted file
Fix a regression in 10.20220624 that caused git-annex add to crash when there was an unstaged deletion. Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
15c0cff2da
commit
94029995fa
5 changed files with 35 additions and 17 deletions
2
Test.hs
2
Test.hs
|
@ -399,6 +399,8 @@ test_add_moved = intmpclonerepo $ do
|
|||
createDirectory subdir
|
||||
Utility.MoveFile.moveFile (toRawFilePath annexedfile) (toRawFilePath subfile)
|
||||
git_annex "add" [subdir] "add of moved annexed file"
|
||||
git "mv" [sha1annexedfile, sha1annexedfile ++ ".renamed"] "git mv"
|
||||
git_annex "add" [] "add does not fail on deleted file after move"
|
||||
where
|
||||
subdir = "subdir"
|
||||
subfile = subdir </> "file"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue