diff options
author | Eric Wong <e@80x24.org> | 2022-10-08 08:24:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-10-09 16:48:39 +0000 |
commit | 5290ed2889d7a62ce3e41e4ff08efaefd2727eda (patch) | |
tree | 8f9592335a45203f4cb543a5d31964db13689952 /lib/PublicInbox/Config.pm | |
parent | dda0b4ab620e1709c0e25b3d9d70745fe52d60d3 (diff) | |
download | public-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.pm | 5 |
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}; |