We should not completely kill a process if "git gc --auto"
errors out due to a warning or whatnot.
---
 lib/PublicInbox/Import.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index 611f7b1..1ac112b 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: $!";
-- 
EW


Reply via email to