[PATCH] Change git-cvsimport to handle slashes in CVS tags
- From
Wayne Scott <wsc9tt@gmail.com>
- Date
- Oct 28, 2005, 18:46 UTC
- Message-ID
- <59a6e5830510281146s7b25da76l8bf97287522b89f2@mail.gmail.com>
The Tcl/Tk CVS tree contains some tags like this one: dev-stubs-merge-8-1-3/9/99
CVS doesn't mind that tag, but git can't handle the slash characters in the tag. Just change those to underscore so imports can complete.
Signed-off-by: Wayne Scott <wsc9tt@gmail.com> ---
git-cvsimport.perl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
applies-to: cf6439199f61d87dbb70fd7b43144e41462a359d 225c95454711467fc889c15cb3f7ca3230fce58d
diff --git a/git-cvsimport.perl b/git-cvsimport.perl index bbb83fb..d71c30c 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -636,6 +636,7 @@ my $commit = sub { my($xtag) = $tag; $xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and * * FUNKY ** $xtag =~ tr/_/\./ if ( $opt_u ); + $xtag =~ tr/\//_/; my $pid = open2($in, $out, 'git-mktag'); print $out "object $cid\n". --- 0.99.8.GIT