Article View: linux.kernel.git
Article #3877Re: [PATCH v3] pack-objects: handle missing promisor objects
From: Junio C Hamano
Date: Thu, 26 Nov 2026 01:10
Date: Thu, 26 Nov 2026 01:10
51 lines
14768 bytes
14768 bytes
"Alessio Attilio via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Alessio Attilio <attilio.alessio@protonmail.com>
>
> Objects missing from a partial clone are expected to be absent.
> When checking whether an object is in a promisor pack, do not BUG()
> if its object info cannot be read. Such an object cannot be included
> in the pack, so skip it.
>
> Pass OBJECT_INFO_SKIP_FETCH_OBJECT explicitly so the lookup does not
> trigger a lazy fetch.
>
> Test filtered --unshallow and --deepen fetches, as well as a subsequent
> fetch that repacks links to promisor commits with missing trees.
>
> Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
> ---
> pack-objects: handle missing promisor objects
>
> Changes since v1:
>
> * Pass OBJECT_INFO_SKIP_FETCH_OBJECT explicitly to avoid lazy fetching
> during the lookup.
> * Cover filtered --unshallow and --deepen fetches, and a later fetch
> after unshallowing a filtered clone.
Here is what Documentation/SubmittingPatches::[[patch-flow]] says:
It is often beneficial to allow some time for reviewers to provide
feedback before sending a new version, rather than sending an updated
series immediately after receiving a review. This helps collect broader
input, gives reviewers in different time zones a fair chance to comment,
and avoids unnecessary churn from many rapid iterations. Waiting also
encourages you to polish each version before sending it, so reviewers
can focus on substantial issues rather than typos or other small
mistakes.
It is not considered good manners to send a new iteration before
first finishing the discussion on the reviews you received on your
previous iteration. You respond to reviews, saying "I will fix this
point", "I think this one is fine as-is because...", and so forth,
wait for responses to your response, and eventually come to an
agreement with those in the discussion, so both sides know what the
next iteration should look like before you start working on it.
Only after finishing all of that do you prepare and send a new
iteration.
Thanks.
Technical Details
Message-ID:
<xmqqpkvsv1mi.fsf@gitster.g>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76414-linux-kernel-git=dewy.ruReferences:
<pull.2333.git.1795635624820.gitgitgadget@gmail.com> <pull.2333.v3.git.1795648282594.gitgitgadget@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76414-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v3] pack-objects: handle missing promisor objects
Date: Wed, 25 Nov 2026 17:10:29 -0800
Organization: Usenet Network
Message-ID: <xmqqpkvsv1mi.fsf@gitster.g>
References: <pull.2333.git.1795635624820.gitgitgadget@gmail.com>
<pull.2333.v3.git.1795648282594.gitgitgadget@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
logging-data="349610"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5YtXiNCDyUH2RcM9pUvkTTXjYig= sha256:VlVbN9c7j7fYZnulK9Te9lIx1enw9FqK/n6RCyZSBAU=
sha1:Hty7JWxL+QWnWqAbzEONVhiKAUg= sha256:da8TlnJFVNW+A+fZve+LdfeAucqea0KMdLmltbMrUlY=
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 9D407125EA1; Thu, 26 Nov 2026 04:12:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
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,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=pobox.com header.b=e5y9ZcFY; dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=Vb8XjdfF
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 gw2Ogt0v8rIc;
Thu, 26 Nov 2026 04:12:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-76414-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id E52AB125EAD; Thu, 26 Nov 2026 04:12:41 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id B4501308AB; Thu, 26 Nov 2026 01:12:37 +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=1795655433;
b=hpLtkb2Y8mQ7LKGPG6KKrWouvQnK6oEZ7Zdr9S9+uS2nQkqobPZ4xl2FAfez8do1k6Do
yhVF9v5lI6fZNXPjdvaJ4cSoNC5P4wJe1OwdxvYc1dLEF1ASC0nfQNs58fbTUYQyDr/A2
ZeuS/gGE/UrVYSG4VSWbBZCLpH6KGDgQgvjV4sEqXSwISXKno2f1KkFe0Vun/hRBjYG/Y
f09tCshxt+MlpWx+u4YOjyZiIp99lCv/INIpJavyh6gofNmmnb+jLVDZ++D2jKSPIHNqu
B0vn7oXZrPd06p1NI8qBUV4/CO54pGNPgV2+I4rkpT1s/qYnCwdmcJMMvDso/SJ84Sg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795655433;
h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type;
bh=A8RFHVKGQo1HfEnKGv9M9+AAZZsE8zNvWrzDUprqC5s=;
b=gTjHyKRnEHV02jClCpQ+81mX9JJh/JNzxLS+TcEAFcP+d6jEdy1btUbTA56K/jq1ivuS
IVlQ6cOlhCQ82mbJkVDF7xJgvPem88nDVCEOt7WrB+HhBI7fsM2h73YE5Y7twnGI6e66A
Uvz9FaqILyW1RNKpdxlIrS33hckx+8mk9EEe9QMLOicQbeAMjknDlkIJL7KOj3iFGI3+a
q06NtTTfPR9HGMxRUIDYAFDKGq0+fPKQ3+4EJTxujS42y5UDSK84knkm+8BI+mSA9Pbt3
DyzbCMpq9u1Ra2fbMK5CUxayU+bDobkkiMB3TIH3XYYfqfJSMlHt+lhFKU6qbhXicWA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=e5y9ZcFY;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Vb8XjdfF;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.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 47D7D606B771;
Thu, 26 Nov 2026 01:10:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=e5y9ZcFY;
dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Vb8XjdfF
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.150
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795655432;
b=EPONmgBOPgXFZep0w2gy70Ksfr/WLs7PBUIaEebu4gDJmUFr5wUaa/NKJ1ZeZyOxTyAO
D7bzhFPPzix37mPd4OHYnVihdH3tiyCfNN/SneIbFD7WFSVeJdhFgadH8LQvX+t8csMlz
Aebkdcwzuq8dNKmyPAaSLokxoIazbSDJvWsf8rj5b6Df13ZIl7WTsw+TQLdsoxXT0L7Ja
EHEp18DLyqQtPqjsbGCafCtpmT3Xgaix/LSCduCF09RPKEfIyhhtW8XQz9/L4MieyHH1/
qLZx5AtuZXSXFCLl19clv4q/JKzWmlCWD4j/uVFLE3okQET/iaLWqFEt0msl+eiOiOA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795655432;
h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
User-Agent:MIME-Version:Content-Type;
bh=A8RFHVKGQo1HfEnKGv9M9+AAZZsE8zNvWrzDUprqC5s=;
b=lnn+zYNOq/6Bx5frs0rPsMHcjrMaQ5j1pwOliPDURrDdCPHlEdJa3VDNI8IZ3Q1d8qZ8
EJ2x2y3yAeSqFhL9QUh10u64B2S6VcwQ1CRkAtOKEBl2A3lzf90oMT6MIdnHcK/25Kq/+
+MSXAqqlbmxwlI2IdNuoXyYHtC3tJkXZnvP3IMrsLIkf8r83AhOVugMX8kTpudbOtGXVz
RoSAyond2jM+BJtVyYv0V2QWwlO3NPdSQwCIhP54v8OCHdG4Uxr2IMR6Aw/YeXu8AdJrE
Pp2ABOzvH3kt8FA1smoQnEuRW8vi/Gt8ObIRNGDCzHPGa4vUgtCMNS4jFgZxIcVZ2ew==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.com;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=e5y9ZcFY;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Vb8XjdfF;
arc=none smtp.remote-ip=202.12.124.150
X-Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD168606A337
for <git@vger.kernel.org>; Thu, 26 Nov 2026 01:10:31 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BD168606A337
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
by mailfout.stl.internal (Postfix) with ESMTP id E01731D0046B
for <git@vger.kernel.org>; Wed, 25 Nov 2026 20:10:30 -0500 (EST)
X-Received: from phl-frontend-01 ([10.202.2.160])
by phl-compute-01.internal (MEProxy); Wed, 25 Nov 2026 20:10:30 -0500
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm2; t=1795655430; x=1795741830; bh=A8RFHVKGQo
1HfEnKGv9M9+AAZZsE8zNvWrzDUprqC5s=; b=e5y9ZcFYuaJlU5ejQnTAJgAYP+
+BKsiSH5iZ2OcoJ5IsSbAcmt6UApZUs1hljhr8fy8nw+e5eg8Jgs+hU6GbVapy0d
uKA9flG2qfwnN3ivXvC1rB2gQ8QHPNlEW3tDguXUs0J41u01i0CiQ6w2ugotp6Eh
Ptr1sjdcDOvSQz5ZuVnpq9jkDljNs4EnjFX8V4L8JiAtSZutEBeIeHApE2Yn0OUL
h4Rq4mYxxAaGLyBdCpdmB9J+3Ndb18n4nfBGvDcfl124uAHdwxrmTvJ97nkgmQdN
NF5qrJo737OreJJbWCPgYaait1at+QaYPeu3tluTrFaYGsPZSuRiH745uwHQ==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
1795655430; x=1795741830; bh=A8RFHVKGQo1HfEnKGv9M9+AAZZsE8zNvWrz
DUprqC5s=; b=Vb8XjdfFJY9noyn8T+xriYQAvBid8lUbmUQMuvTogxN03tfyFY5
jN4CEx5g/rgLCySSikoNiCYHwl3glQTWFBJ2hNBL5ZeDkOanl7rd1O5ddP7lwkG4
xQ6iLkHi9nomzcBxIyexHYI3bUmrVxWAningvVw8KHym3TqLvie6agtFEUM6FRYc
It9F/OrR64fHSOIpkvo0pVhH+xrbLdtghzTwwHTejCH+NP3IDrZLERqlrl2TmBrb
REkrojnemMRqLJtD9NrLyFKq6vcy1kbL4fIxXaGXv4len4PKA/rEtXwMXwceBWEr
KKieXuIh2HuevEvRY8wEtEvOwtXW6S/zogA==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1795655430; d=pobox.com;
mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
s=fm2:rsa-sha256:Tbc91hCUcH3EeVrSL4OgrqFes+AqijyQO1e3uOooa43d1Du
gBKbir4xVRgE1U2GBmHJcQOjC30MkeRqSqvmUk1RzaWuhyvTA8F9btbY93k8oEF0
06JGawOMQvoebhWZqiMMubywEv0q+KWZiM457z0kKzinE9BCvhyvO4yhpfR0qDrM
HXhjD1H2yAIbzuDf61cvetrRSK6l3266xcL5ChvhHkyvOu+0Jk3ygvJc2k68LWA3
nsTomFZf7oiNrySm49j2WRjT+ulvRJkkM8z7RR5KdhoxqO/R+k+HxbW86NhsRQSz
y0WjlkIG5C0vgU8e7bPZIRVJV5+y9tb1O9oW9lQ==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
action=mi-m=1; hc=12;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:rY4tBNRcZQ4LUNmE7s+X3jFQFLWrptiTGYQd+w+L2ao=:vvHx6bNQ/qRq2ew/AQHLnFSrvLfmTDDLlGk/u/bhr7o=;
X-ME-Sender: <xms:BocHa2TcdowRwRAhcHPl9rX-oP69nuOaPgB2d1VXFNOXd5Yq4-1eYA>
<xme:BocHayxv_N8HGwCiI0um7DissEfWSwPuOq1_8CxEkwALL5Dr7lwLp33e_71e4bk5h
IvuzqpwdLmQ4nZD9yE4RL6afyNFa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A>
<xmx:BocHa67Lb2EZL4V_7_A00VT0j49UU3WUGdRb1Vb9_-0KYnG0ppEBYA>
<xmx:BocHa_3KZPEG06FM0pmE7x8EWzIb3bjP_R197A2PHGLw6yZo0iAXtpm0>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
25 Nov 2026 20:10:30 -0500 (EST)
X-Cc: git@vger.kernel.org, Alessio Attilio <attilio.alessio@protonmail.com>
X-In-Reply-To: <pull.2333.v3.git.1795648282594.gitgitgadget@gmail.com> (Alessio
Attilio via GitGitGadget's message of "Wed, 25 Nov 2026 23:11:22
+0000")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
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