Skip to content

Commit 9229c2e

Browse files
QueenJcloudgitster
authored andcommitted
doc: clarify server behavior for invalid 'want' lines in HTTP protocol
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. This improves understanding of Git’s behavior when handling incorrect object requests and helps developers detect and handle such protocol issues accurately. Signed-off-by: Queen Ediri Jessa <qjessa662@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7f278e9 commit 9229c2e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Documentation/gitprotocol-http.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ If no "want" objects are received, send an error:
443443
TODO: Define error if no "want" lines are requested.
444444
445445
If any "want" object is not reachable, send an error:
446-
TODO: Define error if an invalid "want" is requested.
446+
When a Git server receives an invalid or malformed `want` line, it
447+
responds with an error message that includes the offending object name.
448+
This clarifies the expected behavior for Git implementations and helps
449+
clients detect protocol issues accurately during fetch operations.
447450
448451
Create an empty list, `s_common`.
449452

0 commit comments

Comments
 (0)