about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-10-08 08:24:48 +0000
committerEric Wong <e@80x24.org>2022-10-09 16:48:39 +0000
commit5290ed2889d7a62ce3e41e4ff08efaefd2727eda (patch)
tree8f9592335a45203f4cb543a5d31964db13689952 /lib/PublicInbox/Config.pm
parentdda0b4ab620e1709c0e25b3d9d70745fe52d60d3 (diff)
downloadpublic-inbox-5290ed2889d7a62ce3e41e4ff08efaefd2727eda.tar.gz
I'm not sure how to best make a UI for one coderepo to many
inboxes/extindices, yet; but at least allow a simple 1:1
mapping, for now.  This ensures /$CODEREPO/$OID/s/ can work
as effectively as /$INBOX/$OID/s/ when looking for emails
associated with a git commit.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index a430cd5c..c27928de 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -404,6 +404,11 @@ sub repo_objs {
                         push @repo_objs, $repo if $repo;
                 }
                 if (scalar @repo_objs) {
+                        require Scalar::Util;
+                        for (@repo_objs) {
+                                push @{$_->{-ibxs}}, $ibxish;
+                                Scalar::Util::weaken($_->{-ibxs}->[-1]);
+                        }
                         $ibxish->{-repo_objs} = \@repo_objs;
                 } else {
                         delete $ibxish->{coderepo};