diff options
author | Eric Wong <e@80x24.org> | 2021-10-16 01:01:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-16 01:42:54 +0000 |
commit | d7511a5d9eeea403a39d25ff3da10f51b46eb728 (patch) | |
tree | f3ceb11bb9f33d732af8a8dfca05bff4600bd89e /lib | |
parent | 90fb7620d92d82b5825051bf81731d4a6513e5d0 (diff) | |
download | public-inbox-d7511a5d9eeea403a39d25ff3da10f51b46eb728.tar.gz |
We don't need to flood the terminal with "W: $oid is (!= blob)\n" messages when somebody nukes a git cat-file process from under us.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/LeiToMail.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiToMail.pm b/lib/PublicInbox/LeiToMail.pm index 76e103c7..ca4e92de 100644 --- a/lib/PublicInbox/LeiToMail.pm +++ b/lib/PublicInbox/LeiToMail.pm @@ -132,6 +132,7 @@ sub eml2mboxcl2 { sub git_to_mail { # git->cat_async callback my ($bref, $oid, $type, $size, $arg) = @_; + $type // return; # called by git->async_abort my ($write_cb, $smsg) = @$arg; if ($type eq 'missing' && $smsg->{-lms_ro}) { if ($bref = $smsg->{-lms_ro}->local_blob($oid, 1)) { |