summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
Diffstat (limited to 'lorry')
-rwxr-xr-xlorry5
1 files changed, 3 insertions, 2 deletions
diff --git a/lorry b/lorry
index 43a58f7..6bca47a 100755
--- a/lorry
+++ b/lorry
@@ -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):