fix check that remote branch needs merged

This commit is contained in:
Joey Hess 2011-12-31 02:03:39 -04:00
parent 79231bcff0
commit f2b584ad74

View file

@ -130,8 +130,8 @@ mergeRemote :: Remote.Remote Annex -> Git.Ref -> CommandCleanup
mergeRemote remote branch = all id <$> mapM go [branch, syncBranch branch]
where
go b = do
e <- inRepo $ Git.Branch.changed branch b
if e
c <- inRepo $ Git.Branch.changed b (remotebranch b)
if c
then mergeFrom $ remotebranch b
else return True
remotebranch = Git.Ref.under $