X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-cvsimport.perl;h=5a0255052c9360fdc4cbbdd79008a206ab3e4623;hb=54352bb2742cfbe53fa820eab53607a46d349ae4;hp=95c5eec51ecc6ab6f142cef51eb4bd3b5842debb;hpb=50c2b54b23e0d7df40bd8739c1c96df42c47f280;p=git.git diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 95c5eec51..5a0255052 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -772,7 +772,7 @@ sub commit { waitpid($pid,0); die "Error running git-commit-tree: $?\n" if $?; - system("git-update-ref $remote/$branch $cid") == 0 + system('git-update-ref', "$remote/$branch", $cid) == 0 or die "Cannot write branch $branch for update: $!\n"; if ($tag) { @@ -780,6 +780,7 @@ sub commit { $xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and ** FUNKY ** $xtag =~ tr/_/\./ if ( $opt_u ); $xtag =~ s/[\/]/$opt_s/g; + $xtag =~ s/\[//g; system('git-tag', '-f', $xtag, $cid) == 0 or die "Cannot create tag $xtag: $!\n";