无法解决这个问题。
这可以在machinex.com上本地运行:
hg clone /somepath/repos mystuff
但是我可以远程尝试:
hg clone ssh://myuser@machinex.com/somepath/repos mystuff
我得到这个:
myuser's password: [enter password correctly]
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!
我也可以ssh进入machinex.com。
任何帮助是极大的赞赏。
最佳答案
如果通过ssh的路径相对于根目录(即/),则需要额外的斜杠:
hg clone ssh://myuser@machinex.com//somepath/repos mystuff
否则,它认为它与myuser的主目录有关。
关于mercurial - Mercurial克隆在本地工作,不能在ssh上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7643045/