summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorPaul Oliver <puzza007@gmail.com>2008-05-23 18:29:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-25 20:06:49 (GMT)
commit509792b94f71f199838fdeaf0801e215213a6d08 (patch)
tree3e7433aa264709edf3840a9df77f89f5237d47bd /git-cvsimport.perl
parentb27a23e35d8e532e47661595bda642ef3a7375f1 (diff)
downloadgit-509792b94f71f199838fdeaf0801e215213a6d08.zip
git-509792b94f71f199838fdeaf0801e215213a6d08.tar.gz
git-509792b94f71f199838fdeaf0801e215213a6d08.tar.bz2
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 bdac5d5..5a02550 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";