From 03caba7a0fec0cb44372045b72abf2debb376140 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 15 Oct 2023 08:16:28 +0000 Subject: learn: respect indexlevel for v1 inboxes 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. --- script/public-inbox-learn | 1 + 1 file changed, 1 insertion(+) (limited to 'script') 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") { -- cgit v1.2.3-24-ge0c7