diff options
| author | Adam Vandenberg | 2012-04-18 19:37:28 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-04-19 21:05:59 -0700 |
| commit | f097ce8953dbc2e02c008ab4158f21cd651d0d5c (patch) | |
| tree | cddad752ed35c2eb84cadfeab9976ebd0007bbeb /Library/Homebrew | |
| parent | af7bf47e3112a9d50a1cd915d29f36fc6d6463dd (diff) | |
| download | brew-f097ce8953dbc2e02c008ab4158f21cd651d0d5c.tar.bz2 | |
Detect .git as git urls
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 3eed77ddf..5380b4a59 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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 |
