Skip to content

Commit 2c31a7a

Browse files
Jiu2015gitster
authored andcommitted
doc: fix wrong 4-byte length of pkt-line message
The first four bytes of the line, the pkt-len, indicates the total length of the pkt-line in hexadecimal. Fix wrong pkt-len headers of some pkt-line messages in `http-protocol.txt` and `pack-protocol.txt`. Reviewed-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Jiuyang Xie <jiuyang.xjy@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent af6b65d commit 2c31a7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Documentation/technical/http-protocol.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ smart server reply:
216216
S: 001e# service=git-upload-pack\n
217217
S: 0000
218218
S: 004895dcfa3633004da0049d3d0fa03f80589cbcaf31 refs/heads/maint\0multi_ack\n
219-
S: 0042d049f6c27a2244e12041955e262a404c7faba355 refs/heads/master\n
219+
S: 003fd049f6c27a2244e12041955e262a404c7faba355 refs/heads/master\n
220220
S: 003c2cb58b79488a98d2721cea644875a8dd0026b115 refs/tags/v1.0\n
221221
S: 003fa3c2e2402b99163d1d59756e5f207ae21cccba4c refs/tags/v1.0^{}\n
222222
S: 0000

Documentation/technical/pack-protocol.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Basically what the Git client is doing to connect to an 'upload-pack'
9696
process on the server side over the Git protocol is this:
9797

9898
$ echo -e -n \
99-
"0039git-upload-pack /schacon/gitbook.git\0host=example.com\0" |
99+
"003agit-upload-pack /schacon/gitbook.git\0host=example.com\0" |
100100
nc -v example.com 9418
101101

102102

@@ -171,9 +171,9 @@ with a version number (if "version=1" is sent as an Extra Parameter),
171171
and a listing of each reference it has (all branches and tags) along
172172
with the object name that each reference currently points to.
173173

174-
$ echo -e -n "0044git-upload-pack /schacon/gitbook.git\0host=example.com\0\0version=1\0" |
174+
$ echo -e -n "0045git-upload-pack /schacon/gitbook.git\0host=example.com\0\0version=1\0" |
175175
nc -v example.com 9418
176-
000aversion 1
176+
000eversion 1
177177
00887217a7c7e582c46cec22a130adf4b9d7d950fba0 HEAD\0multi_ack thin-pack
178178
side-band side-band-64k ofs-delta shallow no-progress include-tag
179179
00441d3fcd5ced445d1abc402225c0b8a1299641f497 refs/heads/integration

0 commit comments

Comments
 (0)