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.
You need a double // after hostname i.e.:
hg clone ssh://[email protected]//path/to/projectname projectname
Sounds like hg
is not on your path. The Mercurial FAQ mentions possible fixes for this issue: FAQ/CommonProblems.
Add the remotecmd
value to your Mercurial configuration by opening ~/.hgrc
(or Mercurial.ini
on Windows) on your client machine and adding the following:
[ui]
remotecmd = /path/to/hg
where /path/to/hg
is the path to the hg
command on the remote server.
If you're having problems with your Mercurial configuration, you can use the hg showconfig --debug
command to obtain a full list of your Mercurial settings along with the path and line number of the configuration file that defines each configuration value.
Looks like mercurial isn't in your user's PATH
on the remote server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With