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.

Change-Id: Ie7b6ce6f9769042caa541f80cf2cc758d184c044
2 files changed
tree: 93cb5f53df050a80bc35844225778bdb6f989be9
  1. src/
  2. .gitignore
  3. BUCK
  4. LICENSE