{"thread":{"id":"65038","subject":"[PATCH] added error lines for no 'want' line in git upload pack","startedAt":"2026-02-21T19:49:28Z","lastAt":"2026-02-21T19:49:28Z","messageCount":1,"participants":["karan gb bhatrekaran83@gmail.com"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"536605","messageId":"20260221194851.84071-1-bhatrekaran83@gmail.com","threadId":"65038","inReplyTo":null,"subject":"[PATCH] added error lines for no 'want' line in git upload pack","fromName":"","fromEmail":"karan gb bhatrekaran83@gmail.com","sentAt":"2026-02-21T19:48:41Z","receivedAt":"2026-02-21T19:49:28Z","isPatch":true,"sender":{"key":"karan gb bhatrekaran83@gmail.com","avatar":null},"body":"From: KaranGB83 <bhatrekaran83@gmail.com>\n\nSigned-off-by: KaranGB83 <bhatrekaran83@gmail.com>\n---\n Documentation/gitprotocol-http.adoc | 10 +++++++++-\n 1 file changed, 9 insertions(+), 1 deletion(-)\n\ndiff --git a/Documentation/gitprotocol-http.adoc b/Documentation/gitprotocol-http.adoc\nindex e2ef7f0459..0f735de216 100644\n--- a/Documentation/gitprotocol-http.adoc\n+++ b/Documentation/gitprotocol-http.adoc\n@@ -440,7 +440,15 @@ The server MAY walk backwards through history or through\n the reflog to permit slightly stale requests.\n \n If no \"want\" objects are received, send an error:\n-TODO: Define error if no \"want\" lines are requested.\n+Then the server must treat the request as INVALID and the \n+terminate the negotiation.\n+\n+the server responds with:\n+\n+   S: ERR no wants received\n+\n+It indicates that client failed to specify any object to fetch.\n+The server must not continue when no `want` lines are provided.\n \n If any \"want\" object is not reachable, send an error:\n When a Git server receives an invalid or malformed `want` line, it\n-- \n2.53.0.154.g7c02d39fc2\n\n"}]}