From f9663d67d1b228b6ceaeaab8329968b0d7e445cb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 8 Sep 2016 22:42:42 +0000 Subject: import: run "git gc --auto" when done 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 083fb1bc..611f7b16 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: $!"; -- cgit v1.2.3-24-ge0c7