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/Git.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/Git.pm')
-rw-r--r-- | lib/PublicInbox/Git.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 181026c7..a7ba57f9 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -185,7 +185,7 @@ sub cat_async_step ($$) { my $rbuf = delete($self->{cat_rbuf}) // \(my $new = ''); my ($bref, $oid, $type, $size); my $head = my_readline($self->{in}, $rbuf); - if ($head =~ /^([0-9a-f]{40}) (\S+) ([0-9]+)$/) { + if ($head =~ /^([0-9a-f]{40,}) (\S+) ([0-9]+)$/) { ($oid, $type, $size) = ($1, $2, $3 + 0); $bref = my_read($self->{in}, $rbuf, $size + 1) or fail($self, defined($bref) ? 'read EOF' : "read: $!"); |