* [PATCH] cgit: fix smart HTTP clone interception
@ 2023-03-07 9:32 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-03-07 9:32 UTC (permalink / raw)
To: meta
We need to use the proper hash and key to do coderepo lookups
since we culled a redundant data structure a few months back.
Fixes: 1802dc29bda25a54 ("www_coderepo: do not copy {-code_repos} from config")
---
lib/PublicInbox/Cgit.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Cgit.pm b/lib/PublicInbox/Cgit.pm
index 336098ca..a1a2e828 100644
--- a/lib/PublicInbox/Cgit.pm
+++ b/lib/PublicInbox/Cgit.pm
@@ -91,7 +91,7 @@ sub call {
# handle requests without spawning cgit iff possible:
if ($path_info =~ m!\A/(.+?)/($PublicInbox::GitHTTPBackend::ANY)\z!ox) {
my ($nick, $path) = ($1, $2);
- if (my PublicInbox::Git $git = $self->{"\0$nick"}) {
+ if (my $git = $self->{pi_cfg}->{-code_repos}->{$nick}) {
return serve($env, $git, $path);
}
} elsif ($path_info =~ m!$self->{static}! &&
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-07 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 9:32 [PATCH] cgit: fix smart HTTP clone interception Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).