From ecdeac7d3814ba4785b3ed1ba41aeef7079debdc Mon Sep 17 00:00:00 2001 From: Mike Percy Date: Tue, 6 Nov 2018 19:33:02 -0800 Subject: [PATCH] docs: Use a non-SSH method of installing Gerrit commit hook Apparently, contributors in China cannot connect to the Gerrit SSH port. Because of this, they cannot follow the How to Contribute directions for installing the Gerrit commit hook. This patch updates those instructions to use HTTPS instead of SSH for installing the Gerrit commit hook, which should work for everyone. Change-Id: Ibdb024aafcd601f740ae73d83c54f9659cc5a3a9 Reviewed-on: http://gerrit.cloudera.org:8080/11896 Reviewed-by: Alexey Serbin Reviewed-by: Grant Henke Tested-by: Grant Henke --- docs/contributing.adoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/contributing.adoc b/docs/contributing.adoc index e182c4e4e4..e22df56376 100644 --- a/docs/contributing.adoc +++ b/docs/contributing.adoc @@ -63,11 +63,13 @@ git remote add gerrit ssh://@gerrit.cloudera.org:29418/kudu ---- . Run the following command to install the -Gerrit `commit-msg` hook. Use the following command, replacing `` with your -Github username. +Gerrit `commit-msg` hook. Use the following command: + ---- -gitdir=$(git rev-parse --git-dir); scp -p -P 29418 @gerrit.cloudera.org:hooks/commit-msg ${gitdir}/hooks/ +cd kudu +gitdir=$(git rev-parse --git-dir) +curl -LSsf https://gerrit.cloudera.org/tools/hooks/commit-msg -o ${gitdir}/hooks/commit-msg +chmod +x ${gitdir}/hooks/commit-msg ---- . Be sure you have set the Kudu repository to use `pull --rebase` by default. You