diff options
| author | Adam Vandenberg | 2012-11-01 08:08:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-11-01 08:08:40 -0700 |
| commit | 9fc68bdb3872209bd5662ddbaef35b53fd117ab7 (patch) | |
| tree | 24319dd8663edf6fcbd1cdb3546f76676f09edb7 /Library/Homebrew/cmd/install.rb | |
| parent | 45d36799fe604e1d10e810f09800a4395f37c63e (diff) | |
| download | homebrew-9fc68bdb3872209bd5662ddbaef35b53fd117ab7.tar.bz2 | |
Error out on lowercase --head parameter to install.
Fixes #14815.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -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" |
