]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Git.pm
treewide: relax allow >=40 chars for git OID
[public-inbox.git] / lib / PublicInbox / Git.pm
index 181026c7bc1b726ff562e1b488f3256a0bf98c87..a7ba57f94fa2f9d4bfc270fe774ab50679b05286 100644 (file)
@@ -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: $!");