我安装了带有 hg-git 扩展的 TortoiseHg。我知道它正在工作,因为我可以使用 hg clone git://github.com/foo/bar.git
从 github 克隆存储库
但是,我正在尝试克隆位于 http://www-dev.cockos.com/wdl/WDL.git/ 的存储库
如果我这样做 hg clone <a href="http://www-dev.cockos.com/wdl/WDL.git/" rel="noreferrer noopener nofollow">http://www-dev.cockos.com/wdl/WDL.git/</a>
它毫不奇怪地报告:
abort: 'http://www-dev.cockos.com/wdl/WDL.git/' does not appear to be an hg repository!
然后我尝试打开 git://前缀,这看起来像是在做某事(说“将 Hg 对象导入 Git”,但最终超时并显示消息:
destination directory: WDL.git
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
是否有任何标志可以告诉 hg-git 使用 http URL 进行克隆?
最佳答案
阅读 release notes 时 dulwich (用于Git交互的Python库,被Hg-Git使用),不清楚Git repo是否支持http协议(protocol)。
实际上,bug 373688和 this thread似乎表明 http://.../repo.git不是 dulwich(以及 hg-git 的扩展)当前支持的 url。
目前只有 file:///
、git://
或 git+ssh://
可用。
关于git - 使用 tortoisehg 从 http URL 克隆 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5788872/