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}! &&