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")
# 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}! &&