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>
This commit is contained in:
Shawn O. Pearce
2010-01-29 12:48:21 -08:00
parent 733791be38
commit 3e4e804248
15 changed files with 445 additions and 145 deletions

View File

@@ -4,14 +4,17 @@ Gerrit Code Review - Command Line Tools
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].