git-cvsimport: perform initial checkout correctly
PATCH 1/1 git-cvsimport: perform initial checkout correctly
Often people wonder why cvsimport does not perform the initial checkout even though -i option is not given.
--- git-cvsimport.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-cvsimport.perl +1 -1
@@ -1017,7 +1017,7 @@ if ($orig_branch) { unless -f "$git_dir/refs/heads/master"; system('git-update-ref', 'HEAD', "$orig_branch"); unless ($opt_i) { - system('git checkout'); + system('git checkout -f)); die "checkout failed: $?\n" if $?; } }