Skip to content

Commit a055422

Browse files
g-papegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f45e867 commit a055422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-cvsimport.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ sub commit {
818818
$state = 4;
819819
} elsif ($state == 4 and s/^Branch:\s+//) {
820820
s/\s+$//;
821+
tr/_/\./ if ( $opt_u );
821822
s/[\/]/$opt_s/g;
822823
$branch = $_;
823824
$state = 5;

0 commit comments

Comments
 (0)