summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Nguyen Thai Ngoc Duy <pclouds@gmail.com>2011-10-04 05:13:38 +1100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-10-03 14:57:36 -0700
commitd78e5aecf931967bbaa4a8601cd40a5359e80e24 (patch)
tree79075783edf2dd0a6bebaad41d3ddbd88a0ac6f3
parentDocument the underlying protocol used by shallow repositories and --depth com... (diff)
downloadtgif-d78e5aecf931967bbaa4a8601cd40a5359e80e24.tar.xz
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 <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
-------------