Skip to contentSkip to conversation

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

PATCH New Karan GB [email protected] 1 participant 1 message Feb 21 Documentation

lore
Share & tools
lore

Karan GB [email protected]

author
#0 lore raw

PATCH 1/1 added error lines for no 'want' line in git upload pack

From: KaranGB83 <[email protected]>

---
 Documentation/gitprotocol-http.adoc | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Documentation/gitprotocol-http.adoc +9 -1
index e2ef7f0459..0f735de216 100644
@@ -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
Signature · 1 line
2.53.0.154.g7c02d39fc2