summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorPaul Oliver <puzza007@gmail.com>2008-05-23 19:29:22 +0100
committerJunio C Hamano <gitster@pobox.com>2008-05-25 13:06:49 -0700
commit509792b94f71f199838fdeaf0801e215213a6d08 (patch)
tree3e7433aa264709edf3840a9df77f89f5237d47bd /git-cvsimport.perl
parentb27a23e35d8e532e47661595bda642ef3a7375f1 (diff)
downloadgit-509792b94f71f199838fdeaf0801e215213a6d08.tar.gz
Make git-cvsimport remove ['s from tags, as bad_ref_char doesn't allow them.
Signed-off-by: Paul Oliver <puzza007@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index bdac5d51b6..5a0255052c 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";