summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Sync.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs
index 16932b87c..b69b9a020 100644
--- a/Command/Sync.hs
+++ b/Command/Sync.hs
@@ -315,7 +315,9 @@ pushBranch remote branch g = tryIO (directpush g) `after` syncpush g
, refspec branch
]
directpush = Git.Command.runQuiet $ pushparams
- [Git.fromRef $ Git.Ref.base $ fromDirectBranch branch]
+ [ Git.fromRef $ Git.Ref.base $ Annex.Branch.name
+ , Git.fromRef $ Git.Ref.base $ fromDirectBranch branch
+ ]
pushparams branches =
[ Param "push"
, Param $ Remote.name remote