git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Change git-cvsimport to handle slashes in CVS tags

From
Wayne Scott <wsc9tt@gmail.com>
Date
Oct 28, 2005, 18:46 UTC
Message-ID
<59a6e5830510281146s7b25da76l8bf97287522b89f2@mail.gmail.com>
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
Next: Johannes Schindelin
Message 1 of 5 in “Change git-cvsimport to handle slashes in CVS tags”
  1. Change git-cvsimport to handle slashes in CVS tagsWayne Scott, Oct 28, 2005
  2. Johannes SchindelinOct 28, 2005
  3. Linus TorvaldsOct 28, 2005
  4. Junio C HamanoOct 28, 2005
  5. H. Peter AnvinOct 28, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.