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

[PATCH] git-cvsimport: really convert underscores in branch names to dots with -u

From
Gerrit Pape <pape@smarden.org>
Date
Nov 3, 2007, 11:55 UTC
Message-ID
<20071103115502.14532.qmail@d121e5a37ec172.315fe32.mid.smarden.org>

The documentation states for the -u option that underscores in tag and branch names are converted to dots, but this was actually implemented for the tag names only.

Kurt Roeckx reported this through
 http://bugs.debian.org/446495
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 git-cvsimport.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 2954fb8..e4bc2b5 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -818,6 +818,7 @@ while (<CVS>) {
 		$state = 4;
 	} elsif ($state == 4 and s/^Branch:\s+//) {
 		s/\s+$//;
+		tr/_/\./ if ( $opt_u );
 		s/[\/]/$opt_s/g;
 		$branch = $_;
 		$state = 5;
-- 
1.5.3.5
Next: Andreas Fuchs
Message 1 of 2 in “git-cvsimport: really convert underscores in branch names to dots with -u”
  1. git-cvsimport: really convert underscores in branch names to dots with -uGerrit Pape, Nov 3, 2007
  2. git-cvsimport: creating bogus branches (was: really convert underscores in branch names to dots with -u)Andreas Fuchs, Mar 11, 2008

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.