# [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/13634

## Paul Oliver, 2008-05-23 12:00

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

```
