about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-23 20:19:39 +0000
committerEric Wong <e@80x24.org>2021-10-23 21:53:56 +0000
commit29c85048380d8b7a9cbfd632610740153fccc555 (patch)
treec4d7656ea64b74560dc48a99348dc85b8b510798 /lib/PublicInbox/Config.pm
parent1d6ebab439828dce8b7e8cbb99dfbc237e9d5a74 (diff)
downloadpublic-inbox-29c85048380d8b7a9cbfd632610740153fccc555.tar.gz
This is necessary for showing "found $OID in $CODEREPO_URL"
in solver-generated pages ($INBOX_URL/$OID/s/).
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index f2e5d5f0..41117ac5 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -323,9 +323,8 @@ sub parse_cgitrc {
         cgit_repo_merge($self, $repo->{dir}, $repo) if $repo;
 }
 
-# parse a code repo
-# Only git is supported at the moment, but SVN and Hg are possibilities
-sub _fill_code_repo {
+# parse a code repo, only git is supported at the moment
+sub fill_code_repo {
         my ($self, $nick) = @_;
         my $pfx = "coderepo.$nick";
         my $dir = $self->{"$pfx.dir"} // do { # aka "GIT_DIR"
@@ -392,7 +391,7 @@ sub repo_objs {
                                 next;
                         }
                         my $repo = $code_repos->{$nick} //=
-                                                _fill_code_repo($self, $nick);
+                                                fill_code_repo($self, $nick);
                         push @repo_objs, $repo if $repo;
                 }
                 if (scalar @repo_objs) {