Skip to content

Commit 4558805

Browse files
authored
Fix error when describing the Smart Protool
1 parent 0aa250f commit 4558805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ $ ssh -x git@server "git-receive-pack 'simplegit-progit.git'"
153153
The `git-receive-pack` command immediately responds with one line for each reference it currently has – in this case, just the `master` branch and its SHA-1.
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

156-
Each line starts with a 4-character hex value specifying how long the rest of the line is.
157-
Your first line starts with 00a5, which is hexadecimal for 165, meaning that 165 bytes remain on that line.
156+
Each line starts with a 4-character hex value specifying how long the whole the line is (including the 4-character length itself and the trailing linefeed).
157+
Your first line starts with 00a5, which is hexadecimal for 165, meaning the line is 165 bytes long.
158158
The next line is 0000, meaning the server is done with its references listing.
159159

160160
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)