summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gmail.com>2011-10-04 05:13:38 +1100
committerJunio C Hamano <gitster@pobox.com>2011-10-03 14:57:36 -0700
commitd78e5aecf931967bbaa4a8601cd40a5359e80e24 (patch)
tree79075783edf2dd0a6bebaad41d3ddbd88a0ac6f3
parent4a1c26951610fa1d2b9f8d9f7c85979bed856c94 (diff)
downloadgit-nd/document-err-packet.tar.gz
pack-protocol: document "ERR" linend/document-err-packet
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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/technical/pack-protocol.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/technical/pack-protocol.txt b/Documentation/technical/pack-protocol.txt
index a7004c63e7..546980c0a4 100644
--- a/Documentation/technical/pack-protocol.txt
+++ b/Documentation/technical/pack-protocol.txt
@@ -60,6 +60,13 @@ process on the server side over the Git protocol is this:
"0039git-upload-pack /schacon/gitbook.git\0host=example.com\0" |
nc -v example.com 9418
+If the server refuses the request for some reasons, it could abort
+gracefully with an error message.
+
+----
+ error-line = PKT-LINE("ERR" SP explanation-text)
+----
+
SSH Transport
-------------