From 12ec6afd893720fd2092ca9195064a242e188b4d Mon Sep 17 00:00:00 2001 From: Fredrik Luthander Date: Fri, 28 Oct 2011 07:00:53 +0200 Subject: [PATCH] Provides a template to the download example. Clarifies that the example host must be replaced with proper hostname. Change-Id: Ib6feef2957a540a3e4635672f70729be2a10f27c --- Documentation/cmd-hook-commit-msg.txt | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Documentation/cmd-hook-commit-msg.txt b/Documentation/cmd-hook-commit-msg.txt index 3b06b06ef6..6318bba014 100644 --- a/Documentation/cmd-hook-commit-msg.txt +++ b/Documentation/cmd-hook-commit-msg.txt @@ -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 @:hooks/commit-msg /.git/hooks/ - $ curl http://review.example.com/tools/hooks/commit-msg + $ curl -o /.git/hooks/commit-msg /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