【发布时间】:2012-05-30 08:39:10
【问题描述】:
我尝试在我的一个非常旧的 ubuntu 服务器(Ubuntu 10.04.4)的帐户中安装 hg。它似乎在本地工作,但我无法通过 ssh 克隆存储库。
$ hg clone ssh://user@server//home/user/path
给我一个“.hg not found”错误。
然而,
$ ssh user@server 'ls /home/user/path/.hg'
效果很好。
会不会是端口的问题? 感谢您的帮助!
【问题讨论】:
-
尝试添加
-v和--debug以获取更多信息。 -
这没什么用 :(
running ssh user@server 'hg -R /home/user/path serve --stdio' sending hello command sending between command remote: abort : There is no Mercurial repository here (.hg not found) ! abort : no suitable response from remote hg ! -
好吧,你可以先
ssh user@server,然后再cd /home/user/path; hg summary。服务器上的 repo 真的有效吗?hg安装好了吗? -
hg summary效果很好。我可以从服务器本地的其他目录中hg clone /home/user/path。 hg 版本在服务器上是 1.4.3,在我的机器上是 2.1.2。谢谢! -
存在较大的版本差异,但我不认为这是一个问题。我很困惑!