OSDN Git Service

Make git-cvsimport remove ['s from tags, as bad_ref_char doesn't allow them.
authorPaul Oliver <puzza007@gmail.com>
Fri, 23 May 2008 18:29:22 +0000 (19:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 May 2008 20:06:49 +0000 (13:06 -0700)
Signed-off-by: Paul Oliver <puzza007@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl

index bdac5d5..5a02550 100755 (executable)
@@ -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";