git lfs status fails when status includes file deleted and and directory created with same name
git lfs ls-files- observe that
test/oops.pngis an LFS object - undo the most recent commit but re-stage all the changes:
git reset HEAD~ && git add --all && git status
- observe that git status output reports:
- deleted file named test
- added files under new directory of same name
- including
test/oops.pngwhich is LFS-tracked
git lfs status || echo $?- observe:
- "Git LFS objects to be committed" section is empty despite
test/oops.pngto be committed with LFS - last line of output "read /git-lfs-status-repro/test: is a directory"
- exit code is 2
- "Git LFS objects to be committed" section is empty despite