]> Sergey Matveev's repositories - public-inbox.git/commit
www: cgit: fall back to WwwCoderepo on 404s
authorEric Wong <e@80x24.org>
Wed, 5 Oct 2022 22:29:40 +0000 (22:29 +0000)
committerEric Wong <e@80x24.org>
Fri, 7 Oct 2022 07:27:26 +0000 (07:27 +0000)
commit26037c85f73de67197af1987e4c0fa4786ac1e31
tree52d7f462fe42bd091fca039dc2956c0707ff5a4f
parent9fe2348fc4a3462b2de0483b1a1f4baf6edff14c
www: cgit: fall back to WwwCoderepo on 404s

We can't rely on 3-element array response when calling
WwwCoderepo for ViewVCS endpoints since that uses Qspawn
internally.  Thus, we have to allow two Qspawn objects to run in
parallel and ensure `qspawn.wcb' only gets called once, so we
end up duplicating the entire $ctx to ensure this.
lib/PublicInbox/Cgit.pm
lib/PublicInbox/GitHTTPBackend.pm
lib/PublicInbox/Qspawn.pm