remove unnecessary check

mergeLocal always creates the local sync branch, so no need to check that
it exists later.
This commit is contained in:
Joey Hess 2011-12-31 03:08:41 -04:00
parent aa64b8ceaf
commit c61642ef0c

View file

@ -92,12 +92,8 @@ mergeLocal branch = go =<< needmerge
next $ next $ mergeFrom syncbranch
pushLocal :: Git.Ref -> CommandStart
pushLocal branch = go =<< inRepo (Git.Ref.exists syncbranch)
where
syncbranch = syncBranch branch
go False = stop
go True = do
updateBranch syncbranch
pushLocal branch = do
updateBranch $ syncBranch branch
stop
updateBranch :: Git.Ref -> Annex ()