linux - ssh 上的 mercurial,远程 hg 没有合适的响应

标签 linux ssh mercurial

当我运行 hg clone ssh://user@host/repo_dir 时,我收到“没有来自远程 hg 的合适响应”和“这里没有 Mercurial 存储库(找不到 .hg)! ”。是什么原因造成的?我确实可以通过 ssh 访问所涉及的服务器/文件。

如果我运行 scp -r user@host:/repo_dir ./ 我会得到 repo 的所有内容,包括 .hg 就好了。 ssh user@host "ls/repo_dir"

相同

添加 -v 什么都不做。输出是完全一样的。 -vvv

相同

最佳答案

原来是我语法错误。 Mercurial 使用 scp/ssh 样式来引用文件,并且当文件路径是绝对路径时需要双斜线,就像我的情况一样。

另一种方法是在您的家中使用符号链接(symbolic link),或者为根 fs 添加两个斜杠。

代替:

hg clone ssh://user@host/repo_dir

使用:

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

关于linux - ssh 上的 mercurial,远程 hg 没有合适的响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23038149/

相关文章:

linux - 正则表达式在通过 ssh 的 sed 中不被接受

c - libtar c 提取文件

linux - 在linux内核3.x模块中,我如何使用Kprobe来计算系统调用?

linux - SSH 隧道将数据从一个数据中心传输到另一个数据中心的中间机器

python - 为什么Python无法调用SSH终端命令?

mercurial - 在 Mercurial (hg) 中,如果发出 "hg push",如何查看将推送的文件列表?

git - 如何从 GitHub 克隆/pull ,但推送到 Kiln?

mercurial - Mercurial 捆绑文件是否支持内部完整性检查?

linux - 使用 -platform eglfs 运行 Qt5 应用程序时 i.MX6 上的段错误

Linux 内核在同一子网数据包上的路由