tweak
This commit is contained in:
parent
f2b584ad74
commit
0396f9c795
1 changed files with 1 additions and 3 deletions
|
@ -140,9 +140,7 @@ mergeRemote remote branch = all id <$> mapM go [branch, syncBranch branch]
|
||||||
pushRemote :: Remote.Remote Annex -> Git.Ref -> CommandStart
|
pushRemote :: Remote.Remote Annex -> Git.Ref -> CommandStart
|
||||||
pushRemote remote branch = go =<< needpush
|
pushRemote remote branch = go =<< needpush
|
||||||
where
|
where
|
||||||
needpush = (||)
|
needpush = anyM newer [syncbranch, Annex.Branch.name]
|
||||||
<$> newer syncbranch
|
|
||||||
<*> newer Annex.Branch.name
|
|
||||||
newer b = do
|
newer b = do
|
||||||
let r = remotebranch b
|
let r = remotebranch b
|
||||||
e <- inRepo (Git.Ref.exists r)
|
e <- inRepo (Git.Ref.exists r)
|
||||||
|
|
Loading…
Reference in a new issue