hg clone git:.... 中止:连接失败?

发布于 2024-09-14 04:52:13 字数 405 浏览 8 评论 0原文

当尝试使用 Mercurial 通过 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 存储库。

When trying to clone a git repository using Mercurial over hg-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

It fails, but why? I can successfully clone hg repositories over http.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

混吃等死 2024-09-21 04:52:13

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

$ hg clone git://github.com/rails/rails.git
target folder: rails
importing git objects into hg                                                   
updating to branch default                                   
2363 files updated, 0 files merged, 0 files removed, 0 files unresolved         
$ cd rails
$ hg bookmarks
   1-2-stable                6587:93df9ec91d74
   2-0-stable                10433:a74a77f2c7df
   2-1-stable                22955:4c14fc65e13c
   2-2-stable                22928:b32f7da4c135
   2-3-stable                28837:e769c35f4340
   3-0-stable                31725:a189c6d4c685
   3-1-stable                31878:48eca81a94da
   3-2-stable                32018:6fdea401d4ed
   compressor                26886:23cc0919b32e
   deps_refactor             19317:9e47f0c5d1cf
   encoding                  17779:b3f42950528b
 * master                    32028:2516d736e018
   sass-cleanup              25967:5f871a0fbe08
   serializers               30995:00982814bb34

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

I just tried to clone with Mercurial 2.0.1 and the latest version of hg-git (32afa497834d) and it worked fine:

$ hg clone git://github.com/rails/rails.git
target folder: rails
importing git objects into hg                                                   
updating to branch default                                   
2363 files updated, 0 files merged, 0 files removed, 0 files unresolved         
$ cd rails
$ hg bookmarks
   1-2-stable                6587:93df9ec91d74
   2-0-stable                10433:a74a77f2c7df
   2-1-stable                22955:4c14fc65e13c
   2-2-stable                22928:b32f7da4c135
   2-3-stable                28837:e769c35f4340
   3-0-stable                31725:a189c6d4c685
   3-1-stable                31878:48eca81a94da
   3-2-stable                32018:6fdea401d4ed
   compressor                26886:23cc0919b32e
   deps_refactor             19317:9e47f0c5d1cf
   encoding                  17779:b3f42950528b
 * master                    32028:2516d736e018
   sass-cleanup              25967:5f871a0fbe08
   serializers               30995:00982814bb34

So I guess you were just unlucky with your network, or maybe GitHub had a temporary problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文