Error out on lowercase --head parameter to install.

Fixes Homebrew/homebrew#14815.
This commit is contained in:
Adam Vandenberg 2012-11-01 08:08:40 -07:00
parent 6762780f3e
commit 5e212a76e3

View File

@ -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"