diff options
author | Eric Wong <e@80x24.org> | 2021-10-23 20:19:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-23 21:53:56 +0000 |
commit | 29c85048380d8b7a9cbfd632610740153fccc555 (patch) | |
tree | c4d7656ea64b74560dc48a99348dc85b8b510798 /lib/PublicInbox/Cgit.pm | |
parent | 1d6ebab439828dce8b7e8cbb99dfbc237e9d5a74 (diff) | |
download | public-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/Cgit.pm')
-rw-r--r-- | lib/PublicInbox/Cgit.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/Cgit.pm b/lib/PublicInbox/Cgit.pm index 8ad07be2..cc729aa2 100644 --- a/lib/PublicInbox/Cgit.pm +++ b/lib/PublicInbox/Cgit.pm @@ -63,15 +63,12 @@ sub new { pi_cfg => $pi_cfg, }, $class; - # fill in -code_repos mapped to inboxes - $pi_cfg->each_inbox($pi_cfg->can('repo_objs')); - # some cgit repos may not be mapped to inboxes, so ensure those exist: my $code_repos = $pi_cfg->{-code_repos}; foreach my $k (keys %$pi_cfg) { $k =~ /\Acoderepo\.(.+)\.dir\z/ or next; my $dir = $pi_cfg->{$k}; - $code_repos->{$1} ||= PublicInbox::Git->new($dir); + $code_repos->{$1} ||= $pi_cfg->fill_code_repo($1); } while (my ($nick, $repo) = each %$code_repos) { $self->{"\0$nick"} = $repo; |