【问题标题】:Cannot clone Mercurial repo - abort: repository http://hg.something.com/something error无法克隆 Mercurial 存储库 - 中止:存储库 http://hg.something.com/something 错误
【发布时间】:2015-09-19 09:32:03
【问题描述】:

我运行这个命令来克隆我的仓库

[19:07:19 root /data]$  hg clone http://hg.something.com/something dir
abort: repository http://hg.something.com/something not found!
[19:07:19 root /data]$

我不知道为什么当我可以从我的网络浏览器访问 repo http://hg.something.com/something 时,hg 说它找不到 repo。同样的命令也适用于我同事的机器。 pinghg.something.com 工作正常。另一件事是几天前我在同一目录中使用相同的命令克隆了相同的 repo。 hg 在该目录中完全可操作。

任何提示可能导致此问题?

PS:我无法使用 SSH。我必须坚持http。

【问题讨论】:

  • 你应该使用 https 而不是 http?
  • @Nanhydrin 也试过了。没用。

标签: version-control mercurial clone fedora


【解决方案1】:

我发现了一个特殊的问题。我从一个看起来像这样的网络浏览器复制了 repo 链接-

如果您看到有一个小字符(红色圆圈)表示该 repo 是一个链接。当我复制整个命令时,这个字符也被复制了。但是当我将此命令粘贴到我的 linux 终端时,它变成了一个不可见的字符,因此我永远无法发现它,但 mercurial 可以。

当我将整个命令粘贴到 vim 中时,它显示了像这样的“不可见”字符-

hg clone <200b>http://hg.something.com/fs

所以那个不可见的字符是zero width space

不过,这是一个非常隐蔽的错误!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-23
    • 2011-06-09
    • 2011-11-16
    • 2012-02-05
    • 2011-05-24
    • 1970-01-01
    • 2011-06-25
    • 2014-11-01
    相关资源
    最近更新 更多