Article View: linux.kernel.git
Article #3030[PATCH 3/3] doc: gitprotocol-v2: send the promisor-remote reply with fetch
From: Christian Couder
Date: Thu, 12 Nov 2026 19:59
Date: Thu, 12 Nov 2026 19:59
32 lines
12225 bytes
12225 bytes
Until a previous commit, a client sent its `promisor-remote=...` reply only with the `ls-refs` and `bundle-uri` protocol commands. Let's clearly document that the client should send that reply with the `fetch` command request too. Reported-by: Matt Cote <mcote@nvidia.com> Signed-off-by: Christian Couder <christian.couder@gmail.com> --- Documentation/gitprotocol-v2.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/gitprotocol-v2.adoc b/Documentation/gitprotocol-v2.adoc index dd52fd8110..b8732173cd 100644 --- a/Documentation/gitprotocol-v2.adoc +++ b/Documentation/gitprotocol-v2.adoc @@ -879,6 +879,12 @@ In this case, or if the client doesn't want to use any promisor remote the server advertised, the client shouldn't advertise the "promisor-remote" capability at all in its reply. +As protocol v2 is stateless (see the "Capabilities" section above), +the client should send this reply with the `fetch` command request, +even if it has already sent it with an earlier command request, like +`ls-refs`. Note that when only some object IDs are fetched, the client +might not send any `ls-refs` command request at all. + On the server side, the "promisor.advertise" and "promisor.sendFields" configuration options can be used to control what it advertises. On the client side, the "promisor.acceptFromServer" and -- 2.56.0
Technical Details
Message-ID:
<20261112195858.53788-8-christian.couder@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75330-linux-kernel-git=dewy.ruReferences:
<20261112195858.53788-5-christian.couder@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75330-linux-kernel-git=dewy.ru
From: christian.couder@gmail.com (Christian Couder)
Newsgroups: linux.kernel.git
Subject: [PATCH 3/3] doc: gitprotocol-v2: send the promisor-remote reply with fetch
Date: Thu, 12 Nov 2026 20:59:02 +0100
Organization: Usenet Network
Message-ID: <20261112195858.53788-8-christian.couder@gmail.com>
References: <20261112195858.53788-5-christian.couder@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1192190"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:QISaqcipFiSvyL2FwuryQqbYmWI= sha256:m1kAfAkXaUA4Vg67WL5L0+olRQkdn3Oq2kYm8JpF6Uw=
sha1:b9mcTa44U79d3m/VvCOJAkQuEGM= sha256:+Z6aRXrQbOz9FBmPXNsQ8BLyoaulDtriZEKZxA9cKXw=
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 E3064114096; Fri, 13 Nov 2026 01:18:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 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, 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 rlNuWM8GK_Qe;
Fri, 13 Nov 2026 01:18:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-75330-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 994D01143A7; Fri, 13 Nov 2026 01:18:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id A86C01641BA; Thu, 12 Nov 2026 20:00:01 +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=1794513571;
b=pAca6Qn36XyOMwQQQoFvhQNhA3kqVnz7ehUpewNKLvHcOhnl8YSEDCjOC6Oh+y04CijN
dxv/rtfLqu9EWg5TqJz4/WzkwPNkYuhyzm7KU77+QVk7Ebmu4lZyjZYQB20/NKCisw7oI
gKRpke9aDLKGF4PmsQEHY2BSLzKs8sIZI7bOlVYTTUdBRVFR3zLtHPExs5j6UMQNaIsyQ
HxGp9UtWuf2S6mqz88+HwCc9GGiRNh6ZKAU+5IwpVgkD0DoReags68YNE4xVmTE53Wbuo
0PNohD6/cqqWQTtPGXqkyTYUvCmHgL9KDVAYVtsi4XKbjJcbGcyenWYs10MFP5ppsIQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794513571;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=O8+icq7/IFXYw66HlMhf1CetesEXfMPHBgAByUPTmQY=;
b=pMvv1VSfq9HfVLf6jYj06c6innWywGYZYQ58BXVhc6rcvKeU93QguWSlhx6b3SFoaMKM
JFQnyEr/x1bihrpoc19QLztsjj593+fgeO+07JfwvULE1wzx1dr71FPRSdS44Z/J9R+5t
eec8tYFCuW2OrKaiyaaR1ckMYzCfFacVjE27pcwgNugZcQ9/9iQ0lkny6miY/PpZcQ/9G
xfkBNw5ndgiKs0H8aCnzRGlH9DCL78zXkn8eaKT/64lI3e7nbXEHmb5Y6yqD5imtscF63
lp38MmpLDnrmAcZDVeZONmAG6OR0gkqIyslbAZX4jEOU52OOKTIaOfxmlkflvNK6ysQ==
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=kl4X00J2;
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 50D68606A8AF;
Thu, 12 Nov 2026 19:59:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kl4X00J2
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.171
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794513570;
b=gJdhkP/mNxPb+HCcW1WlutLJnvlhjowldkuBYdmjTf1YLQdwGag/bFZw2/l0KjlizjBk
QW+4dTZrUVGVuCG1LbahQ+3TByDHNRYrqY7SYTTjtPS2k1jNVbkFwcTDCSc6CnUeYvSpF
BXtQMn36mJOaCy0RvRdMGg6SpuHzl5D64kkY6Vj5bIUdNgyRQzGMHUCCIKn5BhcegC79u
XT9t38gaGbUIQwbGIZnrneLUDwztQwoGr0li0zgfGoHyxhP9MyAh1BfzkvHkDLuJZGH1l
GuqVUMiNoDU7QX+eJHvjfppeKKIfJEpxyC1vFnpYz5i0xK8Ha3YY0MYHZNeZfcArTAw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794513570;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=O8+icq7/IFXYw66HlMhf1CetesEXfMPHBgAByUPTmQY=;
b=Njzk0zoE98qeLGy0NucjTz1RSASSrtK81kScuImooDmNQ3z/V+2Gu1cpirWwNXfW+xMe
ZXJ1SpArB3KjJlObZIWE5Zh6qPugdV/wpT93xuNPzgmtUalzxZH8e7jmC/NzKFP7G+4x7
08mEGgdbnMgyRqh0yVLpFqvtx1rctRsSOzYV3ks52GT/nYfmws+9aj8t19vfuA44RFvkH
YyeRX9+1czxLYVN7g8R8byE9qg5/HsztEQ5ngfDun4Np8L9+UJSb+6BYfl14kWJig/b6A
50S2JVJp2FnLEbNaXWbswsBT9UuzTVRs5f7JxttzS7R5RdJhkzv+gaMKVyEPJCGPGWA==
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=kl4X00J2;
arc=none smtp.remote-ip=74.125.82.171
X-Received: from mail-dy1-f171.google.com (mail-dy1-f171.google.com [74.125.82.171])
(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 26B59606A88D
for <git@vger.kernel.org>; Thu, 12 Nov 2026 19:59:30 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 26B59606A88D
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-dy1-f171.google.com with SMTP id 5a478bee46e88-37600b0db49so1158959eec.1
for <git@vger.kernel.org>; Thu, 12 Nov 2026 11:59:30 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794513569; x=1795118369; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=O8+icq7/IFXYw66HlMhf1CetesEXfMPHBgAByUPTmQY=;
b=kl4X00J2tAC5ZrHIT2NJh4WvNwcSZGyabJGxHulvYIQ6AFIXsPv3RlhnULWAByRo+T
8GK7+/0l6BGcp6ru2yyjrLGnLLjgCpLrYRbZopA32pzZy1v0FQdcOMGzqJ/LL1snvBYV
gfSSAFTtwWcESC0rzLwfdLXKPXiR+kp4ZrqI6OzVuA+MwuFuOnPcgv+LEFv4O4inqSzB
1IZiOWCwEhmIWi0Bh/461Kaj6/O5RajlcXH/ommc6FgK5uKBVEJIUqNSlpw6RHQLkPP2
PqxF0EhPvYMhI/Ms2Ml1N3pFXQvuOhWTw0jIKee9SvUTiy+DIlYJC7gX2NSsu30I1JRk
9KyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794513569; x=1795118369;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=O8+icq7/IFX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6jL5I0rhIIm2XsqkZ6ge9u6AoZJmWyLmAc7l0fV0tZQ49qGPxxOwz+E1TeqdozE
I8L+XLq7eu3AKTH7UQ9JSL34qkgL2klU7mb9rniTCWygS377Tb/CUCMlbSamN0qBotiKlpMDTCo
sobgK19PEDDr0jNkYiclCda1Hn8E41xxFMg4gVlbQvVxDKSILBSllvR1NqUOcP66G60YPbmGs5v
3RY+6HwqlF/cCnzrGmPzGBUa8Q26dSj4nc9ughTQCpgufBWHIVakK6cH6x9ocswAGp9IWzyxU/K
DsnFUw=
X-Received: by 2002:a05:7300:aca4:b0:358:c5c9:2661 with SMTP id 5a478bee46e88-3796676acd5mr224873eec.10.1794513569266;
Thu, 12 Nov 2026 11:59:29 -0800 (PST)
X-Received: from christian--20230123--2G7D3.nvidia.com ([216.228.127.247])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-379553316fdsm640395eec.5.2026.11.12.11.59.28
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 12 Nov 2026 11:59:28 -0800 (PST)
X-Cc: Junio C Hamano <gitster@pobox.com>,
Patrick Steinhardt <ps@pks.im>,
Matt Cote <mcote@nvidia.com>,
Christian Couder <christian.couder@gmail.com>
X-Mailer: git-send-email 2.56.1.471.g1891de46f7.dirty
X-In-Reply-To: <20261112195858.53788-5-christian.couder@gmail.com>
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