# [PATCH] Make git-cvsimport remove ['s from tags, as bad_ref_char doesn't allow them.

1 messages from 2008-05-23 to 2008-05-23. Participants: Paul Oliver.
Thread: https://gitlist.dev/t/13640

## Paul Oliver, 2008-05-23 18:29

Subject: [PATCH] Make git-cvsimport remove ['s from tags, as bad_ref_char doesn't allow them.
Message-ID: <a4cc77ec0805231129t45b2b81cka3365a71505240a2@mail.gmail.com>
URL: https://gitlist.dev/e/a4cc77ec0805231129t45b2b81cka3365a71505240a2%40mail.gmail.com

```
Signed-off-by: puzza007 <puzza007@gmail.com>
---
 git-cvsimport.perl |    1 +
 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";
-- 
1.5.3.6

```
