Skip to content

Commit d6d8dac

Browse files
Sven VerdoolaegeLinus Torvalds
authored andcommitted
[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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent e30e814 commit d6d8dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cvsimport-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ while(<CVS>) {
675675
$state = 9;
676676
} elsif($state == 8) {
677677
$logmsg .= "$_\n";
678-
} elsif($state == 9 and /^\s+(\S+):(INITIAL|\d(?:\.\d+)+)->(\d(?:\.\d+)+)\s*$/) {
678+
} elsif($state == 9 and /^\s+(\S+):(INITIAL|\d+(?:\.\d+)+)->(\d+(?:\.\d+)+)\s*$/) {
679679
# VERSION:1.96->1.96.2.1
680680
my $init = ($2 eq "INITIAL");
681681
my $fn = $1;

0 commit comments

Comments
 (0)