summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlorry4
1 files changed, 3 insertions, 1 deletions
diff --git a/lorry b/lorry
index 7c43691..b91522b 100755
--- a/lorry
+++ b/lorry
@@ -240,7 +240,9 @@ class Lorry(cliapp.Application):
self.run_program(['git', 'clone', '--mirror', spec['url'], gitdir])
else:
self.progress('.. updating existing clone')
- self.run_program(['git', 'fetch', 'origin'], cwd=gitdir)
+ self.run_program(['git', 'fetch', spec['url'],
+ 'refs/heads/*:refs/heads/*',
+ 'refs/tags/*:refs/tags/*'], cwd=gitdir)
def gitify_bzr(self, project_name, dirname, gitdir, spec):
bzrdir = os.path.join(dirname, 'bzr')