]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: allow a client to check fields
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Sep 2025 05:30:52 +0000 (07:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Sep 2025 17:30:55 +0000 (10:30 -0700)
commitc213820c512dc0a5cfe11a075e41f789f3225923
tree47184f82eab6ba3c1737ad9dc0a3996066c8d9e7
parentbcb08c837570f24a82d6484fc5f475372820e3f3
promisor-remote: allow a client to check fields

A previous commit allowed a server to pass additional fields through
the "promisor-remote" protocol capability after the "name" and "url"
fields, specifically the "partialCloneFilter" and "token" fields.

Let's make it possible for a client to check if these fields match
what it expects before accepting a promisor remote.

We allow this by introducing a new "promisor.checkFields"
configuration variable. It should contain a comma or space separated
list of fields that will be checked.

By limiting the protocol to specific well-defined fields, we ensure
both server and client have a shared understanding of field
semantics and usage.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/promisor.adoc
promisor-remote.c
t/t5710-promisor-remote-capability.sh