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:
parent
9aecf4110a
commit
c77ac11acc
5 changed files with 23 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue