aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-11-01 08:08:40 -0700
committerAdam Vandenberg2012-11-01 08:08:40 -0700
commit9fc68bdb3872209bd5662ddbaef35b53fd117ab7 (patch)
tree24319dd8663edf6fcbd1cdb3546f76676f09edb7 /Library/Homebrew/cmd/install.rb
parent45d36799fe604e1d10e810f09800a4395f37c63e (diff)
downloadhomebrew-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.rb4
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"