开发者

Cloning git repository from http URL with tortoisehg

I have TortoiseHg with the hg-git extension installed. I know it is w开发者_运维技巧orking as I can clone repositories from github using hg clone git://github.com/foo/bar.git

However, I am trying to clone a repository located at http://www-dev.cockos.com/wdl/WDL.git/ If I do hg clone http://www-dev.cockos.com/wdl/WDL.git/ it unsurprisingly reports:

abort: 'http://www-dev.cockos.com/wdl/WDL.git/' does not appear to be an hg repository!

I then tried putting the git:// prefix on, which looked like it was doing something (says "Importing Hg objects into Git", but eventually times out with the message:

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

Is there any flag I can use to tell hg-git to do the clone using the http URL?


When reading the release notes of dulwich (the Python library for Git interactions, used by Hg-Git), it is not clear that http protocol is supported for Git repo.

Actually, bug 373688 and this thread seem to indicate that http://.../repo.git isn't an url currently supported by dulwich (and, by extension, by hg-git).
Only file:///, git:// or git+ssh:// are available at the moment.


Problem should be fixed now since Dulwich 0.8.1 now understands http protocol.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜