GitHub - use git for smart https repos

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
pascalbertrand 2011-04-04 22:52:11 +02:00 committed by Adam Vandenberg
parent 66110c78e7
commit 11f3fca867

View File

@ -488,7 +488,7 @@ def detect_download_strategy url
when %r[^svn\+http://] then SubversionDownloadStrategy when %r[^svn\+http://] then SubversionDownloadStrategy
when %r[^fossil://] then FossilDownloadStrategy when %r[^fossil://] then FossilDownloadStrategy
# Some well-known source hosts # Some well-known source hosts
when %r[^http://github\.com/.+\.git$] then GitDownloadStrategy when %r[^https?://github\.com/.+\.git$] then GitDownloadStrategy
when %r[^https?://(.+?\.)?googlecode\.com/hg] then MercurialDownloadStrategy when %r[^https?://(.+?\.)?googlecode\.com/hg] then MercurialDownloadStrategy
when %r[^https?://(.+?\.)?googlecode\.com/svn] then SubversionDownloadStrategy when %r[^https?://(.+?\.)?googlecode\.com/svn] then SubversionDownloadStrategy
when %r[^https?://(.+?\.)?sourceforge\.net/svnroot/] then SubversionDownloadStrategy when %r[^https?://(.+?\.)?sourceforge\.net/svnroot/] then SubversionDownloadStrategy