diff options
author | Eric Wong <e@80x24.org> | 2023-03-07 09:32:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-03-07 19:12:35 +0000 |
commit | ac4ca042c45137f3cffa773a9634c9db9863b820 (patch) | |
tree | 053051bb2e0b74c71f475d1a6a21765cf1e8e81d /lib | |
parent | 010b3a1482c1c1c24c447e9ea4b6b24ddd4577bb (diff) | |
download | public-inbox-ac4ca042c45137f3cffa773a9634c9db9863b820.tar.gz |
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")
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Cgit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}! && |