From ea9b01fc63f864435370d3bc9cec674ce03e887e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Aug 2021 00:29:44 +0000 Subject: lei: hexdigest mocks account for unwanted headers PublicInbox::Import never imports @UNWANTED_HEADERS, so ensure our mock blob OIDs do the same. This ought to prevent duplicates if the PSGI mboxrd download starts setting "X-Status: F" like "lei q -tt .." --- lib/PublicInbox/LeiRemote.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiRemote.pm') diff --git a/lib/PublicInbox/LeiRemote.pm b/lib/PublicInbox/LeiRemote.pm index e7deecb8..580787c0 100644 --- a/lib/PublicInbox/LeiRemote.pm +++ b/lib/PublicInbox/LeiRemote.pm @@ -32,7 +32,7 @@ sub _each_mboxrd_eml { # callback for MboxReader->mboxrd $smsg = $res if ref($res) eq ref($smsg); } $smsg->{blob} //= $xoids ? (keys(%$xoids))[0] - : git_sha(1, $eml)->hexdigest; + : $lei->git_blob_id($eml); $smsg->populate($eml); $smsg->{mid} //= '(none)'; push @{$self->{smsg}}, $smsg; -- cgit v1.2.3-24-ge0c7