简体   繁体   中英

Cloning git repository from http URL with tortoisehg

I have TortoiseHg with the hg-git extension installed. I know it is working 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.

现在问题应该解决,因为Dulwich 0.8.1现在了解http协议。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM