about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-03-30 18:30:09 +0000
committerEric Wong <e@yhbt.net>2020-03-30 18:31:09 +0000
commit3865c430c572b3aa0d48991b9bb86a9e64b45a12 (patch)
treec44e101ed7bfb9f2116c247cc3cff3660d1f543c
parent740db9e58da0cb548d6c9f6534e0047a96298c47 (diff)
downloadpublic-inbox-3865c430c572b3aa0d48991b9bb86a9e64b45a12.tar.gz
git-cat-file(1) may return less than the $BIN_DETECT value for
some blobs, so ensure we repopulate the values in $ctx for
retries in that case, otherwise we'll lose `$ctx->{-res}' and
die when attempting to use `undef' as an array ref.
-rw-r--r--lib/PublicInbox/ViewVCS.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index 069937c1..9ec04f48 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -58,6 +58,7 @@ sub stream_blob_parse_hdr { # {parse_hdr} for Qspawn
                         warn "premature EOF on $oid $$logref\n";
                         return html_page($ctx, 500, $logref);
                 }
+                @$ctx{qw(-res -logref)} = ($res, $logref);
                 undef; # bref keeps growing
         }
 }