]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStore.pm
lei_store: update alternates on new epoch
[public-inbox.git] / lib / PublicInbox / LeiStore.pm
index d2dd4e7bfec0d4bb5e2524b71ad242e6b7900be3..870826380c0c74248dab1acdcb81df3cd828f7a0 100644 (file)
@@ -79,7 +79,10 @@ sub importer {
                my $old = -e $latest;
                PublicInbox::Import::init_bare($latest);
                my $git = PublicInbox::Git->new($latest);
-               $git->qx(qw(config core.sharedRepository 0600)) if !$old;
+               if (!$old) {
+                       $git->qx(qw(config core.sharedRepository 0600));
+                       $self->done; # force eidx_init on next round
+               }
                my $packed_bytes = $git->packed_bytes;
                my $unpacked_bytes = $packed_bytes / $self->packing_factor;
                if ($unpacked_bytes >= $self->rotate_bytes) {