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.
This commit is contained in:
Adam Vandenberg 2014-02-11 21:25:26 -08:00
parent 4d3dbba644
commit ae69fa25cc
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,10 @@ module Homebrew extend self
end end
end end
if ARGV.include? '--head'
raise "Specify `--HEAD` in uppercase to build from trunk."
end
ARGV.named.each do |name| ARGV.named.each do |name|
# if a formula has been tapped ignore the blacklisting # if a formula has been tapped ignore the blacklisting
if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb" if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb"

View File

@ -111,7 +111,7 @@ module HomebrewArgvExtension
end end
def build_head? def build_head?
include?('--HEAD') || include?('--head') include? '--HEAD'
end end
def build_devel? def build_devel?