2

尝试使用 Mercurial over hg-git 克隆 git 存储库时:

hg clone git://github.com/rails/rails.git
destination directory: rails
importing Hg objects into Git
abort: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

它失败了,但为什么?我可以通过 http 成功克隆 hg 存储库。

4

1 回答 1

1

我只是尝试使用 Mercurial 2.0.1 和最新版本的 hg-git ( 32afa497834d) 进行克隆,并且效果很好:

$ hg 克隆 git://github.com/rails/rails.git
目标文件夹:rails
将 git 对象导入 hg                                                   
更新到分支默认值                                   
2363 个文件已更新,0 个文件已合并,0 个文件已删除,0 个文件未解决         
$ cd 导轨
$ hg 书签
   1-2-稳定 6587:93df9ec91d74
   2-0-稳定 10433:a74a77f2c7df
   2-1-稳定 22955:4c14fc65e13c
   2-2-稳定 22928:b32f7da4c135
   2-3-稳定 28837:e769c35f4340
   3-0-稳定 31725:a189c6d4c685
   3-1-稳定 31878:48eca81a94da
   3-2-稳定 32018:6fdea401d4ed
   压缩机 26886:23cc0919b32e
   deps_refactor 19317:9e47f0c5d1cf
   编码 17779:b3f42950528b
 * 主 32028:2516d736e018
   sass 清理 25967:5f871a0fbe08
   序列化程序 30995:00982814bb34

所以我猜你只是你的网络不走运,或者 GitHub 有一个暂时的问题。

于 2011-12-26T21:42:25.577 回答