diff options
author | Eric Wong <e@80x24.org> | 2020-09-15 19:51:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-09-16 04:06:10 +0000 |
commit | 82d793d96cc37d5b3cf562c7081bfacb05d1e4cd (patch) | |
tree | a66af407cfa46641a77f60631cef50a8c487bbb4 /lib/PublicInbox/Feed.pm | |
parent | 9cdeab04ebd95c7f778ba5f258399377b180f2cc (diff) | |
download | public-inbox-82d793d96cc37d5b3cf562c7081bfacb05d1e4cd.tar.gz |
treewide: relax allow >=40 chars for git OID
This will help with eventual git SHA-256 transitions.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |