Include user in scp commands to copy commit hook and cherry-pick script
The Gerrit documentation provides an scp command to install a commit hook that automatically generates Change-IDs and an scp command to copy the gerrit-cherry-pick script. To successfully execute the commands the user has to be specified, otherwise the commands fail with 'Prohibited by Gerrit'. This change adds a user to the example scp commands in the Gerrit documentation so that it's clear that a user has to be specified. Change-Id: I31dfc7e738b1d126b54839bb741c06112bbf8af5 Signed-off-by: Edwin Kempin <edwin.kempin@gmail.com>
This commit is contained in:
parent
d1a8369951
commit
f178f27ab6
|
@ -38,9 +38,9 @@ OBTAINING
|
|||
To obtain the 'gerrit-cherry-pick' script use scp, curl or wget to
|
||||
copy it to your local system:
|
||||
|
||||
$ scp -p -P 29418 gerrit.example.com:bin/gerrit-cherry-pick ~/bin/
|
||||
$ scp -p -P 29418 john.doe@review.example.com:bin/gerrit-cherry-pick ~/bin/
|
||||
|
||||
$ curl http://gerrit.example.com/tools/bin/gerrit-cherry-pick
|
||||
$ curl http://review.example.com/tools/bin/gerrit-cherry-pick
|
||||
|
||||
GERRIT
|
||||
------
|
||||
|
|
|
@ -56,7 +56,7 @@ OBTAINING
|
|||
To obtain the 'commit-msg' script use scp, wget or curl to copy it
|
||||
to your local system:
|
||||
|
||||
$ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
|
||||
$ scp -p -P 29418 john.doe@review.example.com:hooks/commit-msg .git/hooks/
|
||||
|
||||
$ curl http://review.example.com/tools/hooks/commit-msg
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ from Gerrit's daemon, and then executed on the client system.
|
|||
|
||||
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/
|
||||
$ scp -p -P 29418 john.doe@review.example.com:bin/gerrit-cherry-pick ~/bin/
|
||||
$ scp -p -P 29418 john.doe@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
|
||||
|
|
|
@ -48,7 +48,7 @@ can be installed in the local Git repository to automatically
|
|||
create and insert a unique Change-Id line during `git commit`.
|
||||
To install the hook, copy it from Gerrit's daemon:
|
||||
|
||||
$ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
|
||||
$ scp -p -P 29418 john.doe@review.example.com:hooks/commit-msg .git/hooks/
|
||||
|
||||
$ curl http://review.example.com/tools/hooks/commit-msg
|
||||
|
||||
|
|
Loading…
Reference in New Issue