summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Sync.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs
index 4fe5e5bc4..e29f2893f 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)