From: Paul Oliver Date: Fri, 23 May 2008 18:29:22 +0000 (+0100) Subject: Make git-cvsimport remove ['s from tags, as bad_ref_char doesn't allow them. X-Git-Tag: v1.5.6-rc0~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=509792b94f71f199838fdeaf0801e215213a6d08;p=git.git Make git-cvsimport remove ['s from tags, as bad_ref_char doesn't allow them. Signed-off-by: Paul Oliver Signed-off-by: Junio C Hamano --- diff --git a/git-cvsimport.perl b/git-cvsimport.perl index bdac5d51b..5a0255052 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -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";