CONTRIBUTING: Switch from scp to curl to fetch `commit_msg` hook
The existing scp command no longer works on modern distributions which
default to SFTP and not supported by Gerrit servers.
This change switches to using curl which would minimize dependencies
Change-Id: I53273f37c3cff7031518eb93562244358aadea3e
Signed-off-by: Amithash Prasasd <amithash@meta.com>
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 08bad52..3d1c1ad 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -325,9 +325,11 @@
repository to automatically add a Change-Id to your commit messages. The steps
are:
-`gitdir=$(git rev-parse --git-dir)`
-
-`scp -p -P 29418 openbmc.gerrit:hooks/commit-msg ${gitdir}/hooks`
+```
+gitdir=$(git rev-parse --git-dir)
+curl https://gerrit.openbmc.org/tools/hooks/commit-msg -o ${gitdir}/hooks/commit-msg
+chmod +x ${gitdir}/hooks/commit-msg`
+```
To submit a change set, commit your changes, and push to the Gerrit server,
where 'gerrit' is the name of the remote added with the git remote add command: