开发者

Mercurial clone works locally, doesn't work over ssh

开发者 https://www.devze.com 2023-04-10 04:25 出处:网络
Can\'t figure this out. This works locally on machinex.com: hg clone /somepath/repos mystuff But I try this remotely:

Can't figure this out.

This works locally on machinex.com:

hg clone /somepath/repos mystuff

But I try this remotely:

hg clone ssh://myuser@machinex.com/somepath/repos mystuff

I get this:

myuser's password: [enter password correctly]开发者_运维百科
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!

I can ssh into machinex.com just fine, too.

Any help is greatly appreciated.


If the path via ssh is relative to the root directory (i.e., /), you need an extra slash:

hg clone ssh://myuser@machinex.com//somepath/repos mystuff

else it thinks it is relative to myuser's home directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号