diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-24 12:07:25 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-24 12:07:25 +0100 |
commit | 397b94a593f720b360659b1863c70745172d7204 (patch) | |
tree | 4f7c6667e079b34e36667b7434699c08df123f97 /lorry | |
parent | 6c4ac92440eea0bd3d3273bf59c497621730e76b (diff) | |
download | lorry-397b94a593f720b360659b1863c70745172d7204.tar.gz |
lorry: push to url specified in lorry config
Rather than pushing to the remote 'gitorious', it is better to push
to the remote specified in lorry's config, since it may have changed
since the repository was originally mirrored, so the remote in
git's config may be out of date.
This may make the setting of the 'gitirous' remote obsolete now.
Note that the semantic difference between pushing to a remote and
pushing to a url isn't triggered because we always pass refspecs.
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -414,8 +414,11 @@ class Lorry(cliapp.Application): def push_to_mirror_server(self, gitdir, pushrefspecs=[ 'refs/heads/*:refs/heads/*', 'refs/tags/*:refs/tags/*']): - self.progress('.. pushing to mirror server') - self.run_program(['git', 'push', 'gitorious']+pushrefspecs, cwd=gitdir) + self.progress('.. pushing to mirror server %s' % + self.settings['mirror-base-url-push']) + self.run_program(['git', 'push', + self.settings['mirror-base-url-push']]+pushrefspecs, + cwd=gitdir) def run_program(self, argv, **kwargs): if self.settings['command-stdout']: |