Clone with commit-msg hook: Use curl if ssh scheme is disabled
If ssh scheme download was disabled, no command was offered to clone a
project with the commit-msg hook.
Create a curl command to download commit-msg hook when cloning using
http and use the existing scp command only when cloning through ssh.
Using scp requires uploading an ssh key to Gerrit. When using http clone
only, regular users would not need the ssh key anymore.
2 files changed