Skip to content

Commit d78e5ae

Browse files
pcloudsgitster
authored andcommitted
pack-protocol: document "ERR" line
Since a807328 (connect.c: add a way for git-daemon to pass an error back to client), git client recognizes "ERR" line and prints a friendly message to user if an error happens at server side. Document this. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4a1c269 commit d78e5ae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/technical/pack-protocol.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ process on the server side over the Git protocol is this:
6060
"0039git-upload-pack /schacon/gitbook.git\0host=example.com\0" |
6161
nc -v example.com 9418
6262

63+
If the server refuses the request for some reasons, it could abort
64+
gracefully with an error message.
65+
66+
----
67+
error-line = PKT-LINE("ERR" SP explanation-text)
68+
----
69+
6370

6471
SSH Transport
6572
-------------

0 commit comments

Comments
 (0)