aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-11 21:25:26 -0800
committerAdam Vandenberg2014-02-11 21:25:26 -0800
commitae69fa25cc009be165e7495ed3ea3aab48ca5cc1 (patch)
tree069131325d56a23298ee464bec74c0d030de0bdc /Library/Homebrew/cmd
parent4d3dbba644d5ed951e1a81ff23a462f8d4e6c17b (diff)
downloadbrew-ae69fa25cc009be165e7495ed3ea3aab48ca5cc1.tar.bz2
Revert "Recognize --head as an alias for --HEAD"
This reverts commit c32ab0a35a2dfa9b593f759ef0ae8b7af077b0b7. There are other hard-coded uses of HEAD, in build_options for instance. These all need to be fixed before enabling this.
Diffstat (limited to 'Library/Homebrew/cmd')
-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 468eb3d37..4e1705c74 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -19,6 +19,10 @@ module Homebrew extend self
end
end
+ 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"