diff options
| author | Jack Nagel | 2014-02-14 15:31:29 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-02-14 15:33:37 -0500 | 
| commit | d225923d449c5d8eb23d8c695367284186c79a47 (patch) | |
| tree | fd4d66360c0ab251734344a2b86a135062825d94 /Library | |
| parent | 6d47046419f4c107c7d0895d2d06cd0357651ee2 (diff) | |
| download | homebrew-d225923d449c5d8eb23d8c695367284186c79a47.tar.bz2 | |
GitDownloadStrategy: move constant to top of class body
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index e7e482e4b..146d5ce0f 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -464,6 +464,13 @@ class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy  end  class GitDownloadStrategy < VCSDownloadStrategy +  SHALLOW_CLONE_WHITELIST = [ +    %r{git://}, +    %r{https://github\.com}, +    %r{http://git\.sv\.gnu\.org}, +    %r{http://llvm\.org}, +  ] +    def cache_tag; "git" end    def fetch @@ -515,13 +522,6 @@ class GitDownloadStrategy < VCSDownloadStrategy      @ref_type != :revision and host_supports_depth?    end -  SHALLOW_CLONE_WHITELIST = [ -    %r{git://}, -    %r{https://github\.com}, -    %r{http://git\.sv\.gnu\.org}, -    %r{http://llvm\.org}, -  ] -    def host_supports_depth?      SHALLOW_CLONE_WHITELIST.any? { |rx| rx === @url }    end | 
