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,13 +92,9 @@ mergeLocal branch = go =<< needmerge
next $ next $ mergeFrom syncbranch next $ next $ mergeFrom syncbranch
pushLocal :: Git.Ref -> CommandStart pushLocal :: Git.Ref -> CommandStart
pushLocal branch = go =<< inRepo (Git.Ref.exists syncbranch) pushLocal branch = do
where updateBranch $ syncBranch branch
syncbranch = syncBranch branch stop
go False = stop
go True = do
updateBranch syncbranch
stop
updateBranch :: Git.Ref -> Annex () updateBranch :: Git.Ref -> Annex ()
updateBranch syncbranch = updateBranch syncbranch =