about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-09-08 22:42:42 +0000
committerEric Wong <e@80x24.org>2016-09-08 22:42:42 +0000
commitf9663d67d1b228b6ceaeaab8329968b0d7e445cb (patch)
tree16a1f222fa44bc64e62bfd2476ab14a8b9a5dc67 /lib
parent35616acdf83e934f2de518402900a6849108ad01 (diff)
downloadpublic-inbox-f9663d67d1b228b6ceaeaab8329968b0d7e445cb.tar.gz
We need to prevent excessive repository growth for
public-inbox-watch and public-inbox-mda users.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Import.pm1
1 files changed, 1 insertions, 0 deletions
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: $!";