🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3467

[PATCH v2 8/8] doc: gitprotocol-v2: send the promisor-remote reply with fetch

#3467
From: Christian Couder
Date: Fri, 20 Nov 2026 16:48
37 lines
12442 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 each
`fetch` command request asking for a pack too, as protocol v2 is
stateless.

The `fetch` requests sent only for negotiation, like with `git fetch
--negotiate-only`, don't ask for a pack, so they don't need that reply.

Reported-by: Matt Cote <mcote@nvidia.com>
Signed-off-by: Christian Couder <christian.couder@gmail.com>
---
 Documentation/gitprotocol-v2.adoc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/gitprotocol-v2.adoc b/Documentation/gitprotocol-v2.adoc
index dd52fd8110..d70d7ab19b 100644
--- a/Documentation/gitprotocol-v2.adoc
+++ b/Documentation/gitprotocol-v2.adoc
@@ -879,6 +879,13 @@ 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 each `fetch` command request
+asking for a pack, even if it has already sent it with an earlier
+command request, like `ls-refs` or `bundle-uri`. 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: <20261120164812.707946-18-christian.couder@gmail.com>
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-75960-linux-kernel-git=dewy.ru
References: <20261112195858.53788-5-christian.couder@gmail.com> <20261120164812.707946-10-christian.couder@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-75960-linux-kernel-git=dewy.ru
From: christian.couder@gmail.com (Christian Couder)
Newsgroups: linux.kernel.git
Subject: [PATCH v2 8/8] doc: gitprotocol-v2: send the promisor-remote reply with fetch
Date: Fri, 20 Nov 2026 17:48:21 +0100
Organization: Usenet Network
Message-ID: <20261120164812.707946-18-christian.couder@gmail.com>
References: <20261112195858.53788-5-christian.couder@gmail.com>
 <20261120164812.707946-10-christian.couder@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3208677"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MpgR9u6z1trCvoMwRKsEjQ3tbUk= sha256:pvKOwxYvJaeD8E+9P0y5589r5eqovzPhyUyra3e6VsU=
	sha1:o9eJSMojF1TBmkh8vT51aUWUDAc= sha256:RJpXuOL9CQGqDwjjJ6uZ6AcyiFePxYVyF26451nqX8s=
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 1D4051159BA; Fri, 20 Nov 2026 19:49:14 +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 T5SWhh5eYKmD;
	Fri, 20 Nov 2026 19:49:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-75960-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 1D24B115A09; Fri, 20 Nov 2026 19:49:02 +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 092DCC337A; Fri, 20 Nov 2026 16:48:54 +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=1795193329;
	b=vxXbuoYfpP0MIcdNfxwZMoFFqU2Bv/+Te3wVNV3mcVjagDOLts3xAOxsRvHMJoqb9wu8
	 yIvmzwxs8zXxKfDltSqOQZBtDdviAXuCZARh2cakXLFuuBvE7R34V0+ESMUVLLx3mejFZ
	 DyF5ij58ASM3V+xf2MBqVlaYZEq5v2fOEK62n+Xg9rHuqLUAok9Ghm6aLpgVKiBFoNZLQ
	 3R1jxQKCfbuLf883kLKwVZ0963NPROqpQ/0i7hwShvQYXosLQRsx6xDFw79x+sCVKVpN+
	 vf/4yQETTQL+E+/RO1lkyY/DU7jBR1szRJxHrKFMYD7MEfshAVM3giD+CJ+0jF6tdmg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795193329;
	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=WESkEHdhlpnd5+Vf5ubVIvYN5Pd2X5BnBRSHGQXNxeg=;
	b=tHFesw/HpvprRyvQIqipcf0kiPcEK/TFW5n96+dVcHN5PKxMz+AL/ZNgN7my0yom3E+d
	 m3T+9FiFgi+yitvlgv0dQITaJvY2YBErHfFM1JfAUH9O+wpd60c6ZOHTWGGS55qZBocft
	 YCq6rlir4rhWHN6TNL9GDiKJh7fo33WiLYNjf8WlSgn9J+tv181m0jsL7uAAPV/IoC7ko
	 eSo9m5mLv6aBY1xjcNwqJfsQ7TDAEtI63M9QhkB6gTysuQmZrz5btnP//Ujan0JnbkYiE
	 0Qvon1ooP5s7dK8G61N7Udhn8ZpQ32ck02gvnQLziA10/1Dsy4xvtlCHGsIa4rtU7Qg==
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="jzI/2xfd";
	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 C68A660A261B;
	Fri, 20 Nov 2026 16:48:49 +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=jzI/2xfd
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795193329;
	b=FDN3JuS9wFoHu+VPsscFROnU2p82kb1VzgEMu+Ic2myC3oKwtbexuoe42ig0T0gD/4G/
	 vMyWeDZBYHBeY+Q5kMG0z/ZIymAImLgcgUj1VDnhEA9AmSryeNfZJe7tLL99qkE9Q7jkA
	 BXps7JLrqkDXiEPdqRzXm2QJdjADsnIEh1YJpI1esZLE+t/+K+b3zxfPqQCm3mSagNoZm
	 0/FxhkOpo5PtleQtQWi558Gvf1MefbRsbFZoHJjFNhszyxLh1ImTbrTRDk9SaQLLZ8i4g
	 9LKQ04f30XsfuK7TEerXz030uoUzs100ikIXkboPXla2iID2FJ5eq0gzayLzVG78kgQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795193329;
	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=WESkEHdhlpnd5+Vf5ubVIvYN5Pd2X5BnBRSHGQXNxeg=;
	b=FDCUy0Lf7Owt5265/9gRELbcgXLdaFO+LGOjFbecYQI5Uzii/EYIRwfAYw2W/QFEmWUM
	 pbpCoRSSFkKgI1nvtX8gzdHefWtGVpldMPD4ex+scgBmv0Ne06bfm44vYLaL+EQKHsEsU
	 WHHytMe0atZx54V8gV0OI9r5qLgjtrtLPXf64DtT2XDZbb0X3CC3icmsutxP+G6tkzkcW
	 yxGuNey/fVE4iLIg9NFidXxSu2dXD6weLQCXhtkB5e6sN9xWCzVYrmQVSoaeq/uud7pGU
	 izHHXqbiuTdocnNNUGSIDdoSYIIGl9KKRgNfwd+4wo5tcBTJhsifdoe3KyfFkzSwneA==
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="jzI/2xfd";
	arc=none smtp.remote-ip=209.85.221.45
X-Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45])
	(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 0540960A2609
	for <git@vger.kernel.org>; Fri, 20 Nov 2026 16:48:47 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0540960A2609
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-wr1-f45.google.com with SMTP id ffacd0b85a97d-49412eb1474so668541f8f.3
        for <git@vger.kernel.org>; Fri, 20 Nov 2026 08:48:47 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795193326; x=1795798126; 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=WESkEHdhlpnd5+Vf5ubVIvYN5Pd2X5BnBRSHGQXNxeg=;
        b=jzI/2xfdeCTg6dVCVTZUmA6o3KtwbV7MQd43F8IPzuDL3pF1AEE5jctuo+fFCz0y3J
         g1qkd97cQ78wxwZklY2n3eCkerITRyGNLmitc3W8VAtQCaWVv+ETZY94E4LBepLUC4cX
         QhgbW+qWPfZ0scs4cI2PH5w93XypUkLKUe2D2ObAeB0FM8zYqXPrmndfSo4McVAkiVnM
         9xVysfpc3xNoJCcUNGMt2KvC2uAulnmnws2SgRaGhgGbA0USZhOctdpcZI6V/rfMZaSQ
         DsPcKLaKjSAYGmld1ZM0tGxVSuXrG8tLgYRHPNL0pc4HpQNWpBTd6Tqgua/+eQn4Df3b
         BQBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795193326; x=1795798126;
        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=WESkEHdhlpnd5+Vf5ubVIvYN5Pd2X5BnBRSHGQXNxeg=;
        b=anLhge972jjP5b2waFvn0XylUwU9VPCzp91Q/UKKGBGRQbpmwMOZr/zv2+qLcl756/
         Qap/puuOcA6t8UYx8Nu2zG5rJNslEjjwtJpEl4ppEilbBRPNSMLocfsTZQ2aoyzu1oFP
         N0FpdoJIj88jfpyWQ9UoUwMCjUT0MXyndXTua0ppYt/f3LLXkz0VS+83WWwltWHnh7yT
         Fz9fL1mpe4GiOXhVnzeaL3QOpYgK9eflRJgJxZnG2XlIaEMLr/GhsLarqjhi3DFWfCoy
         IttW22vrOOZIbbk8SvG/8rQP/crR2SY08cnFIXPg7zfB/fcC1wfCEyJvjWGWI9hOT3Q9
         MJRA==
X-Gm-Message-State: APuU4Z//tjPmpEDKiFvOy469he48uY2iDuiaOuh21edUEt8YOAp/1h4i
	LcJwgaVVX+s0HV0dos9ehn1kEh/OuHbpa9EPuboSHSM/0aaaUZwfHtSYAEV3XA==
X-Gm-Gg: AZFdTZcXFrLnFHAtgMv7GD5t/7luVrU7YFpyKeoTYIO+v05+Rf3rj3IcqUqdGPx/JEb
	ztdLY/RLmSqsuTKiISneCLb6RyO6nW9YdBItPRfgT9fXPW5fQlew68gN8z8mQHdtuLF4EJ163mC
	4VDfq7Br9DT0s6Atquof9DjzQzF5KwGDWLfbuPCvJQXyBWP4PWxGBcZGQ+CpN5XIi+Gaaw57TBb
	fm7pLNzFbF0Gj0L8P6D35yuEtv2KCGGygjrRw140nQucw9onXCg2ElsA7DhJ31GJ5rE6WTQBF9X
	GQRUsGzf/LOx4Ogz/2lnzaWIlAorJ3E19Iy6M4SkHqiDKQHHu9PA9tfPbLtr1gt+EINjLWuYn3z
	e3qjMLGZiMxL/vIhGNWUKl6V/0ynqchK3CbbJmhoCHKGckFdonvFHXCUAck7IQOW1fGv/91ehJO
	iSKSyBxtDvksolRGAi6ypBZ9MQBLG3TnTv9h94TgR6op8DPvQJqUl/AI4Rzn71/U9AGyseElz4+
	8Lu9iJLCxLSi8xky//0/T8tmDjeMK+99v1EJYhHFQO/yy3my9DGAl5CsBE5zF+ndbphigewtuTD
	OuZs8I3A6n/VuuT3BvzAHIwW3WZ+8l9xyKhN99XTkRagakcjcoSic7DO6b5ZnJP+2mnNQt1RDqT
	MuStcbQCzmSKqDlgq23snTziBv5O1K/zM0spwjmUtuMMPDBvveClT09fjuRC7I3hNtmhKxaMMgT
	7SLxNu2uGmlT8n/InnMJlviEu3zpfthG8WDBuhvH4=
X-Received: by 2002:a05:6000:2310:b0:4a2:ee0f:4fa3 with SMTP id ffacd0b85a97d-4abad6a4224mr8787124f8f.8.1795193326269;
        Fri, 20 Nov 2026 08:48:46 -0800 (PST)
X-Received: from christian--20230123--2G7D3 ([62.35.114.108])
        by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67f281sm6232752f8f.22.2026.11.20.08.48.44
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 20 Nov 2026 08:48:45 -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.596.g78bef52d5b.dirty
X-In-Reply-To: <20261120164812.707946-10-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