Make hooks/commit-msg available over HTTP
We have to move the old scproot assets into gerrit-server so they
are commonly available to both the SSH and HTTP daemon packages.
Bug: issue 392
Change-Id: Ie0dc95529f26b14535c2e1041863a441333516b3
Signed-off-by: Shawn O. Pearce <sop@google.com>
Reviewed-by: Nico Sallembien <nsallembien@google.com>
diff --git a/Documentation/cmd-index.txt b/Documentation/cmd-index.txt
index f5aa983..00a3186 100644
--- a/Documentation/cmd-index.txt
+++ b/Documentation/cmd-index.txt
@@ -4,14 +4,17 @@
Client
------
-Client commands and hooks can be downloaded via scp from Gerrit's
-SSH daemon, and then executed on the client system.
+Client commands and hooks can be downloaded via scp, wget or curl
+from Gerrit's daemon, and then executed on the client system.
-To download a client command or hook, use scp:
+To download a client command or hook, use scp or an http client:
$ scp -p -P 29418 review.example.com:bin/gerrit-cherry-pick ~/bin/
$ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
+ $ curl http://review.example.com/tools/bin/gerrit-cherry-pick
+ $ curl http://review.example.com/tools/hooks/commit-msg
+
For more details on how to determine the correct SSH port number,
see link:user-upload.html#test_ssh[Testing Your SSH Connection].