aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMarkus Reiter2017-08-20 16:24:41 +0200
committerGitHub2017-08-20 16:24:41 +0200
commit1eccaf28dbbdd4a6041c44b11a26dfa995626ed7 (patch)
tree8bd966542d45752d721cf57d420736e24d60888d /Library/Homebrew
parent3b92f69869f0bc88c2f99854392535d4d522902c (diff)
parentf28430049512dd1e82261779e91ae30434c24b25 (diff)
downloadbrew-1eccaf28dbbdd4a6041c44b11a26dfa995626ed7.tar.bz2
Merge pull request #3070 from fsouza/fix-brew-cask-search
Skip search_remote on cask search when HOMEBREW_NO_GITHUB_API is set
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/search.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb
index e89dced92..b299f03ce 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/search.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb
@@ -15,6 +15,7 @@ module Hbc
end
def self.search_remote(query)
+ return [] if ENV["HOMEBREW_NO_GITHUB_API"]
matches = GitHub.search_code(user: "caskroom", path: "Casks",
filename: query, extension: "rb")
matches.map do |match|