git-cvsimport: really convert underscores in branch names to dots with -u
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Gerrit Pape committed
Nov 3, 2007 at 11:55 UTC
a0554224a285b73b87fe1c95dbdff469561b182f
1 file changed
+1
git-cvsimport.perl
+1
@@ -818,6 +818,7 @@ while (<CVS>) {
818
$state = 4;
819
} elsif ($state == 4 and s/^Branch:\s+//) {
820
s/\s+$//;
821
+ tr/_/\./ if ( $opt_u );
822
s/[\/]/$opt_s/g;
823
$branch = $_;
824
$state = 5;