gcb
gcb

Reputation: 14548

mercurial over ssh, no suitable response from remote hg

When I run hg clone ssh://user@host/repo_dir i get a "no suitable response from remote hg" and "There is no Mercurial repository here (.hg not found)!". What is causing this? I do have ssh access to the server/files involved.

If i run scp -r user@host:/repo_dir ./ i get all the contents of the repo, including .hg just fine. same for ssh user@host "ls /repo_dir"

adding -v does nothing. output is exactly the same. same for -vvv

Upvotes: 4

Views: 8666

Answers (1)

gcb
gcb

Reputation: 14548

It turned out that i had the wrong syntax. Mercurial uses the scp/ssh style for referencing files, and that expects double slashes when the filepath is absolute, as it was in my case.

Alternative is to either use a symlink in your home, or add two slashes for the root fs one.

instead of:

hg clone ssh://user@host/repo_dir

use:

hg clone ssh://user@host//repo_dir
#                        ^

Upvotes: 5

Related Questions