diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-20 12:50:40 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-20 12:50:40 +0000 |
commit | 2c742c9edf459ca8b48393b579510c8943ba64f8 (patch) | |
tree | 113dedcfc504192adf643e18c3498b59d1b4eabc /lorry | |
parent | 7f7603057cbc977d59706dae44df76bc793bd8f1 (diff) | |
download | lorry-2c742c9edf459ca8b48393b579510c8943ba64f8.tar.gz |
Add the -a option to git cvsimport to always import all commits.
Without this, I always got a "refs/heads/origin is an invalid SHA1"
error. From the git-cvsimport manual:
-a
Import all commits, including recent ones. cvsimport by
default skips commits that have a timestamp less than 10
minutes ago.
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ class Lorry(cliapp.Application): self.run_program(['git', 'svn', 'fetch'], cwd=gitdir) def gitify_cvs(self, project_name, dirname, gitdir, spec): - self.run_program(['git', 'cvsimport', '-d', spec['url'], + self.run_program(['git', 'cvsimport', '-a', '-d', spec['url'], '-C', gitdir, spec['module']]) out = self.run_program(['git', 'remote'], cwd=gitdir) if 'gitorious' not in out.splitlines(): |