diff options
| author | Adam Vandenberg | 2014-02-11 21:25:26 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-11 21:25:26 -0800 |
| commit | cc1b430c5be3802ab36ccabab9d2807ba89c273b (patch) | |
| tree | 76c69715a9b508c65f1d923e077fefe4749a3477 | |
| parent | 2217535b51eb7ab1e914ea136b69bd93a30c6bf2 (diff) | |
| download | homebrew-cc1b430c5be3802ab36ccabab9d2807ba89c273b.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.
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/extend/ARGV.rb | 2 |
2 files changed, 5 insertions, 1 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" diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb index 7b0a11311..c2e1a9c2e 100644 --- a/Library/Homebrew/extend/ARGV.rb +++ b/Library/Homebrew/extend/ARGV.rb @@ -111,7 +111,7 @@ module HomebrewArgvExtension end def build_head? - include?('--HEAD') || include?('--head') + include? '--HEAD' end def build_devel? |
