diff options
| author | Adam Vandenberg | 2012-11-01 08:08:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-11-01 08:08:40 -0700 |
| commit | 5e212a76e31389abe73a01d44fa08d6a5523cec4 (patch) | |
| tree | c78dae96521d1d27ea48391cc05d76aad7abd0dc /Library | |
| parent | 6762780f3efd4dcdc2d59438d2a5a93c054c372f (diff) | |
| download | brew-5e212a76e31389abe73a01d44fa08d6a5523cec4.tar.bz2 | |
Error out on lowercase --head parameter to install.
Fixes Homebrew/homebrew#14815.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index b01866958..ad5420df1 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -6,6 +6,10 @@ module Homebrew extend self def install raise FormulaUnspecifiedError if ARGV.named.empty? + if ARGV.include? '--head' + raise "Specify `--HEAD` in uppercase to build from trunk." + end + ARGV.named.each do |name| # if a formula has been tapped ignore the blacklisting if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb" |
