diff options
| author | David MacMahon | 2013-10-22 16:18:31 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-25 21:12:28 +0100 |
| commit | a999ddc002af970b12e8472daa3677c1c2e093c5 (patch) | |
| tree | 4918b88db8bb39d5303cbd507ce49d549da32e9e /Library/Homebrew/cmd | |
| parent | 5b433bb05a8b9010493a58ea6fe475596dfa06e9 (diff) | |
| download | brew-a999ddc002af970b12e8472daa3677c1c2e093c5.tar.bz2 | |
Add HOMEBREW_NO_GITHUB_API env var.
This patch allows users to "opt out" of using the GitHub API altogether
by setting the HOMEBREW_NO_GITHUB_API environment variable. The
value of the environment variable does not matter (it can even be
empty!).
For Bash/ZSH: export HOMEBREW_NO_GITHUB_API=1
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index b2febbdba..7319b1d90 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -61,7 +61,7 @@ module Homebrew extend self count = local_results.length + tap_results.length if count == 0 and not blacklisted? query - puts "No formula found for #{query.inspect}. Searching open pull requests..." + puts "No formula found for #{query.inspect}." begin GitHub.find_pull_requests(rx) { |pull| puts pull } rescue GitHub::Error => e |
