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