git - 使用 tortoisehg 从 http URL 克隆 git 存储库

标签 git clone tortoisehg hg-git

我安装了带有 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 373688this thread似乎表明 http://.../repo.git不是 dulwich(以及 hg-git 的扩展)当前支持的 url。
目前只有 file:///git://git+ssh:// 可用。

关于git - 使用 tortoisehg 从 http URL 克隆 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5788872/

相关文章:

svn - 从 git 还是 svn 开始?

Git 授权 - 每个存储库权限

git - 克隆 git 存储库时如何自动保留别名?

git - 在本地时区以 YYYY-MM-DD 格式检索 git 日志

command-line - .hgignore 似乎不起作用

mercurial - 如何退出到旧版本并忽略之后的所有版本

mercurial - 如何从 Mercurial 存储库中删除大文件

java - 即使我们可以使用以下代码片段进行深度克隆,为什么我们还要实现 Cloneable

javascript - 克隆 - 对多个元素使用相同的 javascript 和 css

javascript - 使用 Vue JS 复制输入字段,增加索引