summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
Diffstat (limited to 'lorry')
-rwxr-xr-xlorry5
1 files changed, 4 insertions, 1 deletions
diff --git a/lorry b/lorry
index cf5d9b5..c3c7608 100755
--- a/lorry
+++ b/lorry
@@ -155,7 +155,10 @@ class Lorry(cliapp.Application):
'--window=250'], cwd=gitdir)
self.bundle(name, gitdir)
if not self.settings['pull-only']:
- self.push_to_mirror_server(gitdir)
+ if 'refspecs' in spec:
+ self.push_to_mirror_server(gitdir, spec['refspecs'])
+ else:
+ self.push_to_mirror_server(gitdir)
def add_remote(self, name, gitdir):