Detect .git as git urls
This commit is contained in:
parent
af7bf47e31
commit
f097ce8953
@ -566,12 +566,12 @@ def detect_download_strategy url
|
||||
# Standard URLs
|
||||
when %r[^bzr://] then BazaarDownloadStrategy
|
||||
when %r[^git://] then GitDownloadStrategy
|
||||
when %r[^https?://.+\.git$] then GitDownloadStrategy
|
||||
when %r[^hg://] then MercurialDownloadStrategy
|
||||
when %r[^svn://] then SubversionDownloadStrategy
|
||||
when %r[^svn\+http://] then SubversionDownloadStrategy
|
||||
when %r[^fossil://] then FossilDownloadStrategy
|
||||
# Some well-known source hosts
|
||||
when %r[^https?://github\.com/.+\.git$] then GitDownloadStrategy
|
||||
when %r[^https?://(.+?\.)?googlecode\.com/hg] then MercurialDownloadStrategy
|
||||
when %r[^https?://(.+?\.)?googlecode\.com/svn] then SubversionDownloadStrategy
|
||||
when %r[^https?://(.+?\.)?sourceforge\.net/svnroot/] then SubversionDownloadStrategy
|
||||
|
Loading…
x
Reference in New Issue
Block a user