diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-13 11:38:18 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-13 11:38:18 +0000 |
commit | 031c9067cd3ede80a8c7467e9bf6a55749a6f3cd (patch) | |
tree | d2b84b05d52fe351b13cfed330327849904f1513 /lorry | |
parent | 565d7f739a1e82de22daae57d5a5b3a692abf8c9 (diff) | |
download | lorry-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-x | lorry | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |