All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cvsimport: strip question marks from tags
@ 2012-09-05  2:53 Ken Dreyer
  2012-09-05  3:19 ` Junio C Hamano
  0 siblings, 1 reply; 11+ messages in thread
From: Ken Dreyer @ 2012-09-05  2:53 UTC (permalink / raw)
  To: git; +Cc: gitster, Ken Dreyer

The "?" character can be present in a CVS tag name, but git's
bad_ref_char does not allow question marks in git tags. If
git-cvsimport encounters a CVS tag with a question mark, it will error
and refuse to continue the import beyond that point.

When importing CVS tags, strip "?" characters from the tag names as we
translate them to git tag names.

Signed-off-by: Ken Dreyer <ktdreyer@ktdreyer.com>
---
 git-cvsimport.perl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 8d41610..36f59fe 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -890,6 +890,7 @@ sub commit {
 		$xtag =~ tr/_/\./ if ( $opt_u );
 		$xtag =~ s/[\/]/$opt_s/g;
 		$xtag =~ s/\[//g;
+		$xtag =~ s/\?//g;
 
 		system('git' , 'tag', '-f', $xtag, $cid) == 0
 			or die "Cannot create tag $xtag: $!\n";
-- 
1.7.11.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-06 17:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05  2:53 [PATCH] cvsimport: strip question marks from tags Ken Dreyer
2012-09-05  3:19 ` Junio C Hamano
2012-09-05  4:26   ` [PATCH] cvsimport: strip all inappropriate tag strings Ken Dreyer
2012-09-05  5:52     ` Junio C Hamano
2012-09-05  6:44     ` Alex Vandiver
2012-09-05 21:39       ` Ken Dreyer
2012-09-06  3:52         ` Junio C Hamano
2012-09-06  5:42           ` Ken Dreyer
2012-09-06  9:02             ` Andreas Schwab
2012-09-06 16:36               ` Ken Dreyer
2012-09-06 17:41                 ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.