Mercurial clone在本地工作,不适用于ssh

mar*_*hon 1 ssh mercurial

无法弄清楚这一点.

这在machinex.com上本地工作:

hg clone /somepath/repos mystuff
Run Code Online (Sandbox Code Playgroud)

但我尝试远程:

hg clone ssh://myuser@machinex.com/somepath/repos mystuff
Run Code Online (Sandbox Code Playgroud)

我明白了:

myuser's password: [enter password correctly]
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!
Run Code Online (Sandbox Code Playgroud)

我也可以直接进入machinex.com.

任何帮助是极大的赞赏.

And*_*rew 7

如果通过ssh的路径是相对于根目录(即/),则需要额外的斜杠:

hg clone ssh://myuser@machinex.com//somepath/repos mystuff
Run Code Online (Sandbox Code Playgroud)

否则它认为它与myuser的主目录相关.