resolvemerge: finish up by committing
This commit is contained in:
parent
61a35de433
commit
822f4619ae
2 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
module Annex.AutoMerge
|
||||
( autoMergeFrom
|
||||
, resolveMerge
|
||||
, commitResolvedMerge
|
||||
) where
|
||||
|
||||
import Common.Annex
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue