Skip to content

Commit

Permalink
git-cvsimport: really convert underscores in branch names to dots wit…
Browse files Browse the repository at this point in the history
…h -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>
  • Loading branch information
Gerrit Pape authored and Junio C Hamano committed Nov 4, 2007
1 parent f45e867 commit a055422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ sub commit {
$state = 4;
} elsif ($state == 4 and s/^Branch:\s+//) {
s/\s+$//;
tr/_/\./ if ( $opt_u );
s/[\/]/$opt_s/g;
$branch = $_;
$state = 5;
Expand Down

0 comments on commit a055422

Please sign in to comment.