git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Change git-cvsimport to handle slashes in CVS tags
@ 2005-10-28 18:46 Wayne Scott
  2005-10-28 18:58 ` Johannes Schindelin
  2005-10-28 19:10 ` Linus Torvalds
  0 siblings, 2 replies; 5+ messages in thread
From: Wayne Scott @ 2005-10-28 18:46 UTC (permalink / raw)
  To: git

The Tcl/Tk CVS tree contains some tags like this one:
  dev-stubs-merge-8-1-3/9/99

CVS doesn't mind that tag, but git can't handle the slash
characters in the tag.  Just change those to underscore
so imports can complete.

Signed-off-by: Wayne Scott <wsc9tt@gmail.com>
---

 git-cvsimport.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

applies-to: cf6439199f61d87dbb70fd7b43144e41462a359d
225c95454711467fc889c15cb3f7ca3230fce58d
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index bbb83fb..d71c30c 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -636,6 +636,7 @@ my $commit = sub {
                my($xtag) = $tag;
                $xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and *
* FUNKY **
                $xtag =~ tr/_/\./ if ( $opt_u );
+               $xtag =~ tr/\//_/;

                my $pid = open2($in, $out, 'git-mktag');
                print $out "object $cid\n".
---
0.99.8.GIT

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

end of thread, other threads:[~2005-10-28 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 18:46 [PATCH] Change git-cvsimport to handle slashes in CVS tags Wayne Scott
2005-10-28 18:58 ` Johannes Schindelin
2005-10-28 19:10 ` Linus Torvalds
2005-10-28 20:29   ` Junio C Hamano
2005-10-28 20:47   ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).