From: Eric Wong <e@80x24.org> Date: Thu, 8 Sep 2016 22:42:42 +0000 (+0000) Subject: import: run "git gc --auto" when done X-Git-Tag: v1.0.0~197 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f9663d67d1b228b6ceaeaab8329968b0d7e445cb;p=public-inbox.git import: run "git gc --auto" when done We need to prevent excessive repository growth for public-inbox-watch and public-inbox-mda users. --- 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: $!";