Cloning a Mercurial repository over SSH

Josh picture Josh · Dec 13, 2010 · Viewed 57.3k times · Source

I'm having some difficulty cloning my mercurial repository over ssh.

Here's what I have tried:

hg clone ssh://[email protected]/path/to/projectname projectname

It's giving me this error:

remote: bash: hg: command not found
abort: no suitable response from remote hg!

hg is installed on the server, however.

I was trying to follow the instructions on this website.

Answer

anteatersa picture anteatersa · Nov 11, 2011

You need a double // after hostname i.e.:

hg clone ssh://[email protected]//path/to/projectname projectname