我安装了带有hg-git扩展的TortoiseHg。我知道它正在工作,因为我可以使用hg clone git://github.com/foo/bar.git从github克隆存储库。
然而,我正在尝试克隆一个位于http://www-dev.cockos.com/wdl/WDL.git/的存储库,如果我执行hg clone http://www-dev.cockos.com/wdl/WDL.git/ it,则不出所料地报告:
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进行克隆?
发布于 2011-04-26 18:47:47
在读取 (Hg-Git使用的Git交互库)的release notes时,不清楚Git repo是否支持http协议。
实际上,bug 373688和this thread似乎表明,http://.../repo.git目前不是dulwich (以及hg-git)所支持的url。
目前只有file:///、git://或git+ssh://可用。
发布于 2011-11-07 22:48:18
这个问题现在应该被修复了,因为Dulwitch0.8.1现在可以理解http协议。
https://stackoverflow.com/questions/5788872
复制相似问题