aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-18 15:14:08 -0700
committerAdam Vandenberg2010-07-23 21:39:12 -0700
commit78ca4f35fbb3bc077d36b38b2a20c7392b950f38 (patch)
treefe3c4c438d9c86f38497a155f043033123c2f2f9 /Library
parentbd51ae33431d8aa2b30d150da775097ccd603c9c (diff)
downloadbrew-78ca4f35fbb3bc077d36b38b2a20c7392b950f38.tar.bz2
GitHub - use git for smart http repos
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 0d34a6711..412b1cfe9 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -426,6 +426,7 @@ def detect_download_strategy url
when %r[^svn://] then SubversionDownloadStrategy
when %r[^svn+http://] then SubversionDownloadStrategy
# 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/svn] then SubversionDownloadStrategy
when %r[^https?://(.+?\.)?sourceforge\.net/svnroot/] then SubversionDownloadStrategy