GitHub - use git for smart http repos

This commit is contained in:
Adam Vandenberg 2010-07-18 15:14:08 -07:00
parent bd51ae3343
commit 78ca4f35fb

View File

@ -426,6 +426,7 @@ def detect_download_strategy url
when %r[^svn://] then SubversionDownloadStrategy when %r[^svn://] then SubversionDownloadStrategy
when %r[^svn+http://] then SubversionDownloadStrategy when %r[^svn+http://] then SubversionDownloadStrategy
# Some well-known source hosts # Some well-known source hosts
when %r[^http://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