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:
Joey Hess 2022-08-19 12:49:17 -04:00
parent 15c0cff2da
commit 94029995fa
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 35 additions and 17 deletions

View file

@ -47,3 +47,5 @@ I am a little surprised that it is only datalad-crawler, not datalad or git-anne
[[!meta author=yoh]]
[[!tag projects/datalad]]
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,11 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2022-08-19T16:39:11Z"
content="""
Fixed this.
The test suite does test add of renamed files, but just barely missed it
since it ran git-annex add of the destination file only.
Added a test case for this.
"""]]