Provides a template to the download example.
Clarifies that the example host must be replaced with proper hostname. Change-Id: Ib6feef2957a540a3e4635672f70729be2a10f27c
This commit is contained in:

committed by
Martin Fick

parent
71e364a9d2
commit
12ec6afd89
@@ -53,13 +53,24 @@ change viewed on the web.
|
||||
|
||||
OBTAINING
|
||||
---------
|
||||
To obtain the 'commit-msg' script use scp, wget or curl to copy it
|
||||
to your local system:
|
||||
To obtain the 'commit-msg' script use scp, wget or curl to download it
|
||||
to your local system from your gerrit server.
|
||||
|
||||
You can use either of the below commands:
|
||||
|
||||
====
|
||||
$ scp -p -P 29418 john.doe@review.example.com:hooks/commit-msg .git/hooks/
|
||||
$ scp -p -P 29418 <your username>@<your Gerrit review server>:hooks/commit-msg <local path to your git>/.git/hooks/
|
||||
|
||||
$ curl http://review.example.com/tools/hooks/commit-msg
|
||||
$ curl -o <local path to your git>/.git/hooks/commit-msg <your Gerrit http URL>/tools/hooks/commit-msg
|
||||
====
|
||||
|
||||
A specific example of this might look something like this:
|
||||
|
||||
.Example
|
||||
====
|
||||
$ scp -p -P 29418 john.doe@review.example.com:hooks/commit-msg ~/duhproject/.git/hooks/
|
||||
|
||||
$ curl -o ~/duhproject/.git/hooks/commit-msg http://review.example.com/tools/hooks/commit-msg
|
||||
====
|
||||
|
||||
SEE ALSO
|
||||
|
Reference in New Issue
Block a user