]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: clarify server behavior for invalid 'want' lines in HTTP protocol
authorQueen Ediri Jessa <qjessa662@gmail.com>
Wed, 5 Nov 2025 14:38:49 +0000 (15:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2025 17:45:38 +0000 (09:45 -0800)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitprotocol-http.adoc

index d024010414aa6dbc18c6f7bab59a44eb2d33afe0..e2ef7f045953d8bb6480d0a9c4335ee7d3ac4a85 100644 (file)
@@ -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`.