From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5550D2070F for ; Thu, 8 Sep 2016 22:46:55 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] import: run "git gc --auto" when done Date: Thu, 8 Sep 2016 22:46:51 +0000 Message-Id: <20160908224651.25346-3-e@80x24.org> In-Reply-To: <20160908224651.25346-1-e@80x24.org> References: <20160908224651.25346-1-e@80x24.org> List-Id: We need to prevent excessive repository growth for public-inbox-watch and public-inbox-mda users. --- lib/PublicInbox/Import.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 083fb1b..611f7b1 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -240,6 +240,7 @@ sub done { my $s = PublicInbox::SearchIdx->new($inbox); $s->index_sync({ ref => $self->{ref} }); }; + run_die([@cmd, qw(gc --auto)], undef); } my $lockfh = delete $self->{lockfh} or die "BUG: not locked: $!"; -- EW