[PATCH] http-protocol.txt: add missing flush to example
From: TimTIM via GitGitGadget <hidden>
Date: 2021-11-18 11:22:59
Subsystem:
documentation, the rest · Maintainers:
Jonathan Corbet, Linus Torvalds
From: TimTim Wong <redacted>
Signed-off-by: Timothy Wong <redacted>
---
Fix example in documentation
wants must be flushed with 0000 before haves
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1141%2Fwegylexy%2Fpatch-1-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1141/wegylexy/patch-1-v1
Pull-Request: https://github.com/git/git/pull/1141
Documentation/technical/http-protocol.txt | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/technical/http-protocol.txt b/Documentation/technical/http-protocol.txt
index cc5126cfeda..facb315a993 100644
--- a/Documentation/technical/http-protocol.txt
+++ b/Documentation/technical/http-protocol.txt@@ -314,8 +314,9 @@ Clients MUST first perform ref discovery with C: Content-Type: application/x-git-upload-pack-request C: C: 0032want 0a53e9ddeaddad63ad106860237bbf53411d11a7\n - C: 0032have 441b40d833fdfa93eb2908e52742248faf0ee993\n C: 0000 + C: 0032have 441b40d833fdfa93eb2908e52742248faf0ee993\n + C: done S: 200 OK S: Content-Type: application/x-git-upload-pack-result
@@ -337,9 +338,9 @@ server advertises capability `allow-tip-sha1-in-want` or `allow-reachable-sha1-in-want`. compute_request = want_list + "0000" have_list - request_end - request_end = "0000" / "done" + "done" want_list = PKT-LINE(want SP cap_list LF) *(want_pkt)
base-commit: cd3e606211bb1cf8bc57f7d76bab98cc17a150bc -- gitgitgadget