diff --git a/Command/Sync.hs b/Command/Sync.hs index 4fe5e5bc4c..e29f2893fc 100644 --- a/Command/Sync.hs +++ b/Command/Sync.hs @@ -140,9 +140,7 @@ mergeRemote remote branch = all id <$> mapM go [branch, syncBranch branch] pushRemote :: Remote.Remote Annex -> Git.Ref -> CommandStart pushRemote remote branch = go =<< needpush where - needpush = (||) - <$> newer syncbranch - <*> newer Annex.Branch.name + needpush = anyM newer [syncbranch, Annex.Branch.name] newer b = do let r = remotebranch b e <- inRepo (Git.Ref.exists r)