unannex: Commit staged changes at end

to avoid some confusing behavior with the pre-commit hook, which would see
some types of commits after an unannex as checking in of an unlocked file.
This commit is contained in:
Joey Hess 2011-02-01 21:26:19 -04:00
parent 9aecf4110a
commit c77ac11acc
5 changed files with 23 additions and 6 deletions

View file

@ -55,5 +55,10 @@ cleanup file key = do
fromAnnex key file
logStatus key ValueMissing
-- Commit staged changes at end to avoid confusing the
-- pre-commit hook if this file is later added back to
-- git as a normal, non-annexed file.
Annex.queue "commit" ["-m", "content removed from git annex"] "--"
return True