Skip to content

Commit

Permalink
Substitute "/" with $opt_s in tag names as well as branch names
Browse files Browse the repository at this point in the history
In 'git cvsimport' changes "/" to "-" (or $opt_s) in branch names,
but not in tag names, which is inconsistent.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Joe English authored and Junio C Hamano committed Jan 6, 2006
1 parent 576cfc8 commit 34c99da
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 @@ -649,6 +649,7 @@ ($$)
my($xtag) = $tag;
$xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and ** FUNKY **
$xtag =~ tr/_/\./ if ( $opt_u );
$xtag =~ s/[\/]/$opt_s/g;

my $pid = open2($in, $out, 'git-mktag');
print $out "object $cid\n".
Expand Down

0 comments on commit 34c99da

Please sign in to comment.