diff options
author | Eric Wong <e@yhbt.net> | 2020-03-30 18:30:09 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-03-30 18:31:09 +0000 |
commit | 3865c430c572b3aa0d48991b9bb86a9e64b45a12 (patch) | |
tree | c44e101ed7bfb9f2116c247cc3cff3660d1f543c /lib/PublicInbox/ViewVCS.pm | |
parent | 740db9e58da0cb548d6c9f6534e0047a96298c47 (diff) | |
download | public-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.
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r-- | lib/PublicInbox/ViewVCS.pm | 1 |
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 } } |