git-annex/doc/bugs/unannex_of_modified_file_loses_modification.mdwn
Joey Hess 530e96b80e
fix unannex data overwrite bug
unannex, uninit: When an annexed file is modified, don't overwrite the
modified version with an older version from the annex

This commit was sponsored by Mark Reidenbach on Patreon.
2021-02-22 13:35:00 -04:00

8 lines
326 B
Markdown

git-annex unannex (or uninit) with an annexed file that is modified loses
the modified version, replacing it with the last annexed version.
This is a data loss bug.
Command.Unannex.cleanup just overwrites whatever's there without checking.
Happens with both locked and unlocked files. --[[Joey]]
> [[fixed|done]] --[[Joey]]