about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-04-06 21:02:03 +0000
committerEric Wong <e@80x24.org>2023-04-07 22:17:32 +0000
commit8f22d3c1fffe8c9414ace60a6b14a8904f86d875 (patch)
tree9dd1eb14712ca4faaa9ff8f816da28357f315bf4 /lib/PublicInbox/Config.pm
parentb9ade5efa2232a22fa33c2a8157704ff3059297b (diff)
downloadpublic-inbox-8f22d3c1fffe8c9414ace60a6b14a8904f86d875.tar.gz
I just had to do a double-take here and look back at cgit.c
to see the ordering dependency wasn't a bug I introduced,
but mimicking what cgit does.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index e095ecd1..df488f23 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -318,6 +318,8 @@ sub parse_cgitrc {
                         $k =~ tr/-/_/;
                         $self->{"-cgit_$k"} = $v;
                 } elsif (m!\Ascan-path=(.+)\z!) {
+                        # this depends on being after project-list in the
+                        # config file, just like cgit.c
                         if (defined(my $list = $self->{-cgit_project_list})) {
                                 scan_projects_coderepo($self, $list, $1);
                         } else {