resolvemerge: finish up by committing

This commit is contained in:
Joey Hess 2014-07-11 16:59:49 -04:00
parent 61a35de433
commit 822f4619ae
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,7 @@
module Annex.AutoMerge
( autoMergeFrom
, resolveMerge
, commitResolvedMerge
) where
import Common.Annex

View file

@ -30,7 +30,9 @@ start = do
them <- fromMaybe (error nomergehead) . extractSha
<$> liftIO (readFile merge_head)
ifM (resolveMerge (Just us) them)
( next $ next $ return True
( do
void $ commitResolvedMerge Git.Branch.ManualCommit
next $ next $ return True
, error "Merge conflict could not be automatically resolved."
)
where