Article View: linux.kernel.git
Article #2441Re: [PATCH 2/2] object-file: return error on index-pack abnormal exit
From: Justin Tobler
Date: Thu, 05 Nov 2026 18:09
Date: Thu, 05 Nov 2026 18:09
24 lines
11175 bytes
11175 bytes
On 26/11/04 03:06PM, Junio C Hamano wrote:
> Justin Tobler <jltobler@gmail.com> writes:
> > - if (ret) {
> > + if (report_err) {
> > strbuf_addstr(err_msg, "index-pack failed to report pack name");
> > + ret = -1;
> > goto out;
> > }
>
> I guess this also does not change a behaviour? We used to relay the
> error status returned by read_index_pack_report(), but now we force
> the error code to an explicit -1.
That is correct, there is no behavior change here. The main change is
that `finish_command()` properly reports its error and is not
overwritten by `read_index_pack_report()`.
[snip]
>
> Will queue. Thanks.
Thanks for the review,
-Justin
Technical Details
Message-ID:
<auzFvIgWuUzFgvvh@denethor>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74581-linux-kernel-git=dewy.ruReferences:
<20261103212410.1389988-1-jltobler@gmail.com> <20261103212410.1389988-3-jltobler@gmail.com> <xmqq8q38yz5i.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74581-linux-kernel-git=dewy.ru
From: jltobler@gmail.com (Justin Tobler)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 2/2] object-file: return error on index-pack abnormal exit
Date: Thu, 5 Nov 2026 12:09:29 -0600
Organization: Usenet Network
Message-ID: <auzFvIgWuUzFgvvh@denethor>
References: <20261103212410.1389988-1-jltobler@gmail.com>
<20261103212410.1389988-3-jltobler@gmail.com>
<xmqq8q38yz5i.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="3698414"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/ALWAm03S8Ak/XrTLOi/nhko5Rc= sha256:eOpZ8SOJrqgdpBZWj6Q95ARSt12HbDXOO+0xvtXB+wo=
sha1:BpEqDJbd1DuHRNie6DBcSswUm/w= sha256:3LAIIzJgXb/ouLhun7906Ojn9N2UwXc7gP79+Sf/c3s=
Content-Disposition: inline
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 2BD64113056; Thu, 5 Nov 2026 21:11:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id IQ-8JcSK5TjI;
Thu, 5 Nov 2026 21:11:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74581-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 1FF64113010; Thu, 5 Nov 2026 21:11:23 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id DCEC1295AD; Thu, 5 Nov 2026 18:09:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793902173;
b=o2UtWM+2NVUlUGrvT8j28NWToJ5T5SXoy1CTrKnuOT8c23RQLVImTU0h3tqyMiV93b89
5IPZpktQK9gXpUHcVoOhTE2ow5m+9Z5WbnD+E8ulzUrrSkYuKepkmGUv+J3tocFu7RTP/
1YKOeRAlP+1aVVivzxPrsBe6AidlUZlQFIoYTFK6yFtCoy5ZHUhN+dbChxYjZDZm+ZUgM
JMsaE9Y67OOsvYhGHBgW6hFjvoyc2M4oX0h2tnrN0n8IuPXMWCbJakTp6byeSTEPhpsve
jdbZDRD5FalmhQXgSvUjOB8xiPcSxsX1Bpkk8+9xl09pUCk8WrNnxV3f19Rymi2T03Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793902173;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
In-Reply-To;
bh=Tm5VVqaRW+jmLKOHYWeKyi3/Or1w46oB/61PV4G65Cg=;
b=gOJc5FOfTlVYWjxjQYYdKE0peimk+eWpQF7/nWp9lfC+eNupBi1i9Jpn0+AylYgJSO/P
tfO68f7kfggKEw6Dfkpob93JeLr4H2eVaoXyBCLR/1fpuYtaYPoB277xxcIrEiYhp+Qqg
5fU6EHSfWOxDLLeSpL1xh+JX26nafE0rfTUCheVimzGykd4WW+U6yTeyU9aEpr0bDvxZL
p9ega54kWMLRM8oVVYTOeQuQI8oHRAUioviQZzs+UawqlP6wbtzqIaFvsmw7FqYn81aYy
LWH4SAmHNbtKLIdJUcfcs/dFpcDHxrJi4sBmpnRfbkk/hE6XTxBaHxe05k30ER++AsA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=yRSEXdbx;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EDFC606A339;
Thu, 5 Nov 2026 18:09:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=yRSEXdbx
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793902172;
b=eKz3bU28CFGVlY+6W2rGFh7utgnWArpxFRCTaMrMIK60n6gxqv7Fn3DldXqK5xQjc0Vj
JyeRwxtn5XRn85yN+sfsl5lWd1BHMsUgFQgabfQxhOXumUpb2wXPhYg2SEjm/B2IUe6LQ
OzdllezeeFeb27t0p+SABsYAhCkt9A2vtOHQyhnw2COKSGmHuCDkugY8bS9jAZ6OHlpiC
naUowAizk+0rrdEilea4W21RXTpEttK3WupmhphkIyZ57fvdSSn1Wt+Nu/9HEkgWEktat
0XiXCOrMVWZc/lzhV1Ar86rlO1RR3Ye6p9s8VBeUuv7IxvS0tTiz+CqPR+mseDNAorw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793902172;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:Message-ID:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To;
bh=Tm5VVqaRW+jmLKOHYWeKyi3/Or1w46oB/61PV4G65Cg=;
b=Z6TMP1R+cfonDNSXkLsM4fjIalwSugA/e1zX30nGs/ntI6kU7D4xq/52Ng22gUsBKCpx
/xp7Nmk9vmXlintekzmt2YLvdkFaUKYZWAjvkvIFLex9qthb9a9R0QAjDc7RzyPePQwUZ
23pRuRl8SQDT65sPiI9+q1Vg8E6sxdKSlhNlj3kPad4vzzucyyBWrYxrdZLvojtK88SNH
8k2vOn+juQ/0gki+Osdo/kQIqot5psTTss65SZWqZ+qJZhQYhoWySMa9ZCJMsDiTESFKg
o10WKYaz+JWnfkMWknVM+LPP6Aw5Lu/0QdRnciE+Yc+kgVuXniTtjGoEKcXspX/uU1g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=yRSEXdbx;
arc=none smtp.remote-ip=209.85.210.51
X-Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EA92606A32C
for <git@vger.kernel.org>; Thu, 5 Nov 2026 18:09:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2EA92606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-8446af403b5so1308172a34.2
for <git@vger.kernel.org>; Thu, 05 Nov 2026 10:09:32 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793902171; x=1794506971; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=Tm5VVqaRW+jmLKOHYWeKyi3/Or1w46oB/61PV4G65Cg=;
b=yRSEXdbxhAxNZjaoeGSqUwi2VjZRfk5cbMpDaOeGV9LDX+8TaUHzy/L0eytNMVpcr5
UiBObkGRIoOSFOX6npDwvXg2jSTkethpkA+G7PbxAItsgg2V62IVxoPO6tsENvldoW7A
MgDiSiI93PgiaMNyrt5y2bMfTa2T06B6MnmvGx+mPa1ZV5SKeiUFkSiwsY/URobMplBz
5vJsFeqoq4/fNv+khSzBtBdlnxGnBUGI/zOaIJlLSWIRfYlin5YV1/Wk/eBwCq9AypML
1UUqwSX/rN5MewxRzY6+rR6FYw1YH3temuSaS9HzwIXqYfZz0xHTLADBPcZyj4OXmdZM
uwYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793902171; x=1794506971;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=Tm5VVqaRW+jmLKOHYWeKyi3/Or1w46oB/61PV4G65Cg=;
b=bKLdiZTwqMK1FAEQzoJTSgbbtDvlL+dN32XR3nNe0rhx9N8rFDxSHBBz4YukxOAum9
sdN1rb0V5kfn5clINvlvqvH1/bsBlu2zi0+SQbxHTXdSjqDF4KUWpDPjabWTrUj0vQ8i
OexnXcPill9vlUdbxrEPJRfm3IY56/UXaDa8pwQo7JU1k0/Zi7AJr9K6Zh+GEn+X6fLq
fPBS/43iIjfutQdPfd1ECLlgnyERDam2RqBhlJjjhzSa/XYkks5cxvj5BBoLpqXVYwsf
nOrQHNJCd/MLCJq8hceC9t70ekZ6+tDsUbsG7XNK8kJ1OXXopfYDTDdsZ1ImJRIq0EfB
+61w==
X-Gm-Message-State: APuU4Z+DN5xrMRalBqw9S2Cw7Hg6kf9U6gEg3z1XHqBG7CHtygjaDJJq
xVk42hJUuFxdQFQ4bsz98t/0wlMrxvug5zfFgAAPDa/VgvOgy2I9/WrI9le/CQ==
X-Gm-Gg: AYBFou0GNDYxG34sbOmfhl3eeuBoU2siqYuqytV/x7p2wfNSgCgefGARiZu28ASDD/j
ogpAbsAyxIV8qEKkGfCv2ZVWbbV5+aKu25g+/i7g2YQgTSkYXobfu8rQSWyfFZ1u8tVusD4plFF
Ysp8rsUxH7JVMWKOu+3jp2CRXmB2LxvkvIk9ammyZOMO6zL6rdLgdeEmt07NP0UQcpsCZeZ8i1F
zK1Ix2aiKz3lTFYjSgJLxKo+AAgMGzrgEnsapjbaw+2gl3Iftql91AQxrXi8XG+D5COvB6AXeQr
jj18DFn82EQ1S8QAQWQwyWGOdDAG1JabCD7BvlRZqwth3z78KkoYBI+2YnVmVZdnGW/xxBZK5wD
aEHjDnE7EfnllgMNkyH9778qgfZIwh8cUF9jhuJ71X9h2b55GlCvBEBWL1D23Y62XEPE98meLHo
mwlHaJHiWYpquXbH9JC0day5LRY/BTwzYSi911tCIttCrUX8TdG1fxL/zw7hASV5qZoE4J3RiR1
bnNJe6SMPJI56assZFgQ7WG/hL+vKyFBtHLXazVO7/+vcQLcCnOhxi6XLCXColMTPjU3QA1N2OJ
xzdYvV654hZb/F1yz8P0pb7avDWe57zcVuYFAUhuU7vrlFW7rq+H7g==
X-Received: by 2002:a05:6830:7182:b0:85e:f82d:4389 with SMTP id 46e09a7af769-85f1d001fdemr136705a34.14.1793902171070;
Thu, 05 Nov 2026 10:09:31 -0800 (PST)
X-Received: from localhost ([136.51.44.64])
by smtp.gmail.com with ESMTPSA id 46e09a7af769-85ef3e1f2f0sm5121575a34.17.2026.11.05.10.09.29
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 10:09:29 -0800 (PST)
X-Cc: git@vger.kernel.org
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <xmqq8q38yz5i.fsf@gitster.g>