summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-03-13 11:38:18 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-03-13 11:38:18 +0000
commit031c9067cd3ede80a8c7467e9bf6a55749a6f3cd (patch)
treed2b84b05d52fe351b13cfed330327849904f1513 /lorry
parent565d7f739a1e82de22daae57d5a5b3a692abf8c9 (diff)
downloadlorry-031c9067cd3ede80a8c7467e9bf6a55749a6f3cd.tar.gz
lorry: use refspecs in lorry files
If refspecs are listed, pass them to push_to_mirror_server, if not allow push_to_mirror_server to use its default refspecs Also fix test cases: - refs/tags/rc* is not a valid refspec, * can only substitute a whole directory - git-for-each-ref needs the whole ref path, master is not the same as refs/heads/master
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):