From: Queen Ediri Jessa <qjessa662@gmail•com>
To: git@vger•kernel.org
Cc: gitster@pobox•com, christian.couder@gmail•com,
usman.akinyemi@gmail•com, Queen Ediri Jessa <qjessa662@gmail•com>
Subject: [PATCH v4] doc: clarify server behavior for invalid 'want' lines in HTTP protocol
Date: Wed, 5 Nov 2025 15:38:49 +0100 [thread overview]
Message-ID: <20251105143849.1192-1-qjessa662@gmail.com> (raw)
Update the documentation to clearly describe how the server responds when a
client sends an invalid or malformed `want` line during the HTTP protocol
exchange. The server includes the offending object name in its error message.
Signed-off-by: Queen Ediri Jessa <qjessa662@gmail•com>
---
Changes since v3:
- Removed extra explanatory lines per reviewer feedback.
Documentation/gitprotocol-http.adoc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/gitprotocol-http.adoc b/Documentation/gitprotocol-http.adoc
index d024010414..e2ef7f0459 100644
--- a/Documentation/gitprotocol-http.adoc
+++ b/Documentation/gitprotocol-http.adoc
@@ -443,7 +443,8 @@ If no "want" objects are received, send an error:
TODO: Define error if no "want" lines are requested.
If any "want" object is not reachable, send an error:
-TODO: Define error if an invalid "want" is requested.
+When a Git server receives an invalid or malformed `want` line, it
+responds with an error message that includes the offending object name.
Create an empty list, `s_common`.
--
2.51.0.573.gb660e2dcb9
next reply other threads:[~2025-11-05 14:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 14:38 Queen Ediri Jessa [this message]
2025-11-06 17:46 ` [PATCH v4] doc: clarify server behavior for invalid 'want' lines in HTTP protocol Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251105143849.1192-1-qjessa662@gmail.com \
--to=qjessa662@gmail$(echo .)com \
--cc=christian.couder@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=usman.akinyemi@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox