From: Sven Verdoolaege Date: Tue, 12 Jul 2005 21:35:32 +0000 (+0200) Subject: [PATCH] git-cvsimport-script: parse multidigit revisions. X-Git-Tag: v0.99.1~47 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6d8dac032e0e0c55b3edffbefd0abb00ca960fc;p=git.git [PATCH] git-cvsimport-script: parse multidigit revisions. Previously, git-cvsimport-script would fail on revisions with more than one digit. Signed-off-by: Sven Verdoolaege Signed-off-by: Linus Torvalds --- diff --git a/git-cvsimport-script b/git-cvsimport-script index 0ed12ff34..8f57396c2 100755 --- a/git-cvsimport-script +++ b/git-cvsimport-script @@ -675,7 +675,7 @@ while() { $state = 9; } elsif($state == 8) { $logmsg .= "$_\n"; - } elsif($state == 9 and /^\s+(\S+):(INITIAL|\d(?:\.\d+)+)->(\d(?:\.\d+)+)\s*$/) { + } elsif($state == 9 and /^\s+(\S+):(INITIAL|\d+(?:\.\d+)+)->(\d+(?:\.\d+)+)\s*$/) { # VERSION:1.96->1.96.2.1 my $init = ($2 eq "INITIAL"); my $fn = $1;