about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-01-16 11:52:53 +0000
committerEric Wong <e@80x24.org>2024-01-17 09:37:54 +0000
commitfaeb2670791e3d20f20976e43f9587e2d51180e7 (patch)
tree259140e125225a589c773ea183c8567995467acc
parentf37e32870a213068ed398db5a012000fe1c3d8a6 (diff)
downloadpublic-inbox-faeb2670791e3d20f20976e43f9587e2d51180e7.tar.gz
We don't need 404s for non-existent coderepos creating fake
(and invalid) entries.  I noticed this while working on
subsequent changes to support globbing in URLs.
-rw-r--r--lib/PublicInbox/Config.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index 6bebf790..33c59ec7 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -699,8 +699,8 @@ sub get_coderepo {
         $self->{-coderepos}->{$nick} // do {
                 defined($self->{-cgit_scan_path}) ? do {
                         apply_cgit_scan_path($self);
-                        $self->{-coderepos}->{$nick} =
-                                        fill_coderepo($self, $nick);
+                        my $cr = fill_coderepo($self, $nick);
+                        $cr ? ($self->{-coderepos}->{$nick} = $cr) : undef;
                 } : undef;
         };
 }