git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] added error lines for no 'want' line in git upload pack

From
KBkaran gb bhatrekaran83@gmail.com <karan gb bhatrekaran83@gmail.com>
Date
Feb 21, 2026, 19:48 UTC
Message-ID
<20260221194851.84071-1-bhatrekaran83@gmail.com>
From: KaranGB83 <bhatrekaran83@gmail.com>
Signed-off-by: KaranGB83 <bhatrekaran83@gmail.com>
---
 Documentation/gitprotocol-http.adoc | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Documentation/gitprotocol-http.adoc b/Documentation/gitprotocol-http.adoc
index e2ef7f0459..0f735de216 100644
--- a/Documentation/gitprotocol-http.adoc
+++ b/Documentation/gitprotocol-http.adoc
@@ -440,7 +440,15 @@ The server MAY walk backwards through history or through
 the reflog to permit slightly stale requests.
 
 If no "want" objects are received, send an error:
-TODO: Define error if no "want" lines are requested.
+Then the server must treat the request as INVALID and the 
+terminate the negotiation.
+
+the server responds with:
+
+   S: ERR no wants received
+
+It indicates that client failed to specify any object to fetch.
+The server must not continue when no `want` lines are provided.
 
 If any "want" object is not reachable, send an error:
 When a Git server receives an invalid or malformed `want` line, it
-- 
2.53.0.154.g7c02d39fc2
Message 1 of 1 in “added error lines for no 'want' line in git upload pack”
  1. added error lines for no 'want' line in git upload packkaran gb bhatrekaran83@gmail.com, Feb 21, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.