From 82d793d96cc37d5b3cf562c7081bfacb05d1e4cd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Sep 2020 19:51:37 +0000 Subject: treewide: relax allow >=40 chars for git OID This will help with eventual git SHA-256 transitions. --- lib/PublicInbox/Feed.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/Feed.pm') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index cbdf5db9..805076f0 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -88,7 +88,7 @@ sub recent_msgs { my $hex = '[a-f0-9]'; my $addmsg = qr!^:000000 100644 \S+ (\S+) A\t${hex}{2}/${hex}{38}$!; my $delmsg = qr!^:100644 000000 (\S+) \S+ D\t(${hex}{2}/${hex}{38})$!; - my $refhex = qr/(?:HEAD|${hex}{4,40})(?:~[0-9]+)?/; + my $refhex = qr/(?:HEAD|${hex}{4,})(?:~[0-9]+)?/; # revision ranges may be specified my $range = 'HEAD'; @@ -126,7 +126,7 @@ sub recent_msgs { if ($last) { local $/ = "\n"; while (my $line = <$log>) { - if ($line =~ /^(${hex}{7,40})/) { + if ($line =~ /^(${hex}{7,})/) { $last_commit = $1; last; } -- cgit v1.2.3-24-ge0c7