Skip to content

Commit ee324be

Browse files
authored
Merge pull request #10810 from jsquyres/pr/autogen-tweak
autogen.pl: tweak a regexp to handle more cases
2 parents 384d47d + 5c66993 commit ee324be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autogen.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ sub replace_config_sub_guess {
14091409
open(IN, "git submodule status|")
14101410
|| die "Can't run \"git submodule status\"";
14111411
while (<IN>) {
1412-
$_ =~ m/^(.).{40} ([^ ]+) /;
1412+
$_ =~ m/^(.)[0-9a-f]{40}\s+(\S+)/;
14131413
my $status = $1;
14141414
my $path = $2;
14151415

0 commit comments

Comments
 (0)