Merge "Include user in scp commands to copy commit hook and cherry-pick script"
This commit is contained in:
commit
fdaa54f7fe
|
@ -38,9 +38,9 @@ OBTAINING
|
||||||
To obtain the 'gerrit-cherry-pick' script use scp, curl or wget to
|
To obtain the 'gerrit-cherry-pick' script use scp, curl or wget to
|
||||||
copy it to your local system:
|
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
|
GERRIT
|
||||||
------
|
------
|
||||||
|
|
|
@ -56,7 +56,7 @@ OBTAINING
|
||||||
To obtain the 'commit-msg' script use scp, wget or curl to copy it
|
To obtain the 'commit-msg' script use scp, wget or curl to copy it
|
||||||
to your local system:
|
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
|
$ 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:
|
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 john.doe@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:hooks/commit-msg .git/hooks/
|
||||||
|
|
||||||
$ curl http://review.example.com/tools/bin/gerrit-cherry-pick
|
$ curl http://review.example.com/tools/bin/gerrit-cherry-pick
|
||||||
$ curl http://review.example.com/tools/hooks/commit-msg
|
$ 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`.
|
create and insert a unique Change-Id line during `git commit`.
|
||||||
To install the hook, copy it from Gerrit's daemon:
|
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
|
$ curl http://review.example.com/tools/hooks/commit-msg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue