diff options
author | Eric Wong <e@80x24.org> | 2016-10-16 00:36:14 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-10-16 00:36:14 +0000 |
commit | 8f8a070ab8863e0a6726a1d04815b96a0ee432b3 (patch) | |
tree | 8967d8e83630c0a343289cea28d74209dffc2ef9 | |
parent | 123031737a09edb3297e0fc6ea9e566fc2fecdf5 (diff) | |
download | public-inbox-8f8a070ab8863e0a6726a1d04815b96a0ee432b3.tar.gz |
We should not completely kill a process if "git gc --auto" errors out due to a warning or whatnot.
-rw-r--r-- | lib/PublicInbox/Import.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 611f7b16..1ac112b8 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -240,7 +240,8 @@ sub done { my $s = PublicInbox::SearchIdx->new($inbox); $s->index_sync({ ref => $self->{ref} }); }; - run_die([@cmd, qw(gc --auto)], undef); + + eval { run_die([@cmd, qw(gc --auto)], undef) }; } my $lockfh = delete $self->{lockfh} or die "BUG: not locked: $!"; |