diff options
author | Eric Wong <e@80x24.org> | 2023-10-15 08:16:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-15 23:15:53 +0000 |
commit | 03caba7a0fec0cb44372045b72abf2debb376140 (patch) | |
tree | a7c531e511bad31203818d87c1682115e69066d5 /script/public-inbox-learn | |
parent | c24f57d19f6536d750c8571cda015d9fd57d3a58 (diff) | |
download | public-inbox-03caba7a0fec0cb44372045b72abf2debb376140.tar.gz |
v2 never suffered from this bug, apparently, but -learn didn't seem able to handle indexlevel=basic (nor respect `medium') for v1 inboxes. I only noticed this bug because I converted some ancient v1 inboxes to `basic' to save space.
Diffstat (limited to 'script/public-inbox-learn')
-rwxr-xr-x | script/public-inbox-learn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/public-inbox-learn b/script/public-inbox-learn index 6e1978a7..54d31cb6 100755 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -64,6 +64,7 @@ sub remove_or_add ($$$$) { $ibx->{name} = $ENV{GIT_COMMITTER_NAME} // $ibx->{name}; $ibx->{-primary_address} = $ENV{GIT_COMMITTER_EMAIL} // $addr; $ibx = PublicInbox::InboxWritable->new($ibx); + $ibx->{indexlevel} = $ibx->detect_indexlevel; my $im = $ibx->importer(0); if ($train eq "rm") { |