diff options
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -319,8 +319,9 @@ class Lorry(cliapp.Application): self.progress('.. initialising git dir') self.run_program(['git', 'init', '--bare', gitdir]) self.progress('.. updating existing clone') - argv = ['git', 'fetch', '--prune', spec['url'], - '+refs/heads/*:refs/heads/*', '+refs/tags/*:refs/tags/*'] + argv = ['git', '-c', 'gc.autodetach=false', 'fetch', '--prune', + spec['url'], '+refs/heads/*:refs/heads/*', + '+refs/tags/*:refs/tags/*'] self.run_program(argv, cwd=gitdir, env=env) def gitify_bzr(self, project_name, dirname, gitdir, spec): |