Skip to content

Commit 8b39a94

Browse files
committed
Update the git-receive-pack response explanation
Update the explanation to match the response shown in the console block.
1 parent db7b65d commit 8b39a94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

book/10-git-internals/sections/transfer-protocols.asc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ The `git-receive-pack` command immediately responds with one line for each refer
154154
The first line also has a list of the server's capabilities (here, `report-status`, `delete-refs`, and some others, including the client identifier).
155155

156156
Each line starts with a 4-character hex value specifying how long the rest of the line is.
157-
Your first line starts with 005b, which is hexadecimal for 91, meaning that 91 bytes remain on that line.
158-
The next line starts with 003e, which is 62, so you read the remaining 62 bytes.
157+
Your first line starts with 00a5, which is hexadecimal for 165, meaning that 165 bytes remain on that line.
159158
The next line is 0000, meaning the server is done with its references listing.
160159

161160
Now that it knows the server's state, your `send-pack` process determines what commits it has that the server doesn't.

0 commit comments

Comments
 (0)