Skip to content

Commit 7425876

Browse files
draftcodegitster
authored andcommitted
doc: fix want-capability separator
Unlike ref advertisement, client capabilities and the first want are separated by SP, not NUL, in the implementation. Fix the documentation to align with the implementation. pack-protocol.txt is already fixed. Signed-off-by: Masaya Suzuki <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ffc6fa0 commit 7425876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/technical/http-protocol.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ server advertises capability `allow-tip-sha1-in-want` or
338338
request_end
339339
request_end = "0000" / "done"
340340

341-
want_list = PKT-LINE(want NUL cap_list LF)
341+
want_list = PKT-LINE(want SP cap_list LF)
342342
*(want_pkt)
343343
want_pkt = PKT-LINE(want LF)
344344
want = "want" SP id
345-
cap_list = *(SP capability) SP
345+
cap_list = capability *(SP capability)
346346

347347
have_list = *PKT-LINE("have" SP id LF)
348348

0 commit comments

Comments
 (0)