]> Sergey Matveev's repositories - public-inbox.git/commit
viewvcs: stream_blob_parse_hdr: fix BIN_DETECT retries
authorEric Wong <e@yhbt.net>
Mon, 30 Mar 2020 18:30:09 +0000 (18:30 +0000)
committerEric Wong <e@yhbt.net>
Mon, 30 Mar 2020 18:31:09 +0000 (18:31 +0000)
commit3865c430c572b3aa0d48991b9bb86a9e64b45a12
treec44e101ed7bfb9f2116c247cc3cff3660d1f543c
parent740db9e58da0cb548d6c9f6534e0047a96298c47
viewvcs: stream_blob_parse_hdr: fix BIN_DETECT retries

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.
lib/PublicInbox/ViewVCS.pm