diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 433b7fd3246cf1ab29f3d74befbf6db5adfc8d2c..ba23eb8eebdb841139062d4221c87515b96d8729 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
or die "Cannot write branch $branch for update: $!\n";
if ($tag) {
- my ($in, $out) = ('','');
my ($xtag) = $tag;
$xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and ** FUNKY **
$xtag =~ tr/_/\./ if ( $opt_u );
if ($opt_r && $opt_o ne 'HEAD');
system('git-update-ref', 'HEAD', "$orig_branch");
unless ($opt_i) {
- system('git checkout');
+ system('git checkout -f');
die "checkout failed: $?\n" if $?;
}
}