From 9d172f85c62f640ab4a1ff367c2eba654d5f0bcd Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 10 Apr 2012 21:47:17 -0500 Subject: [PATCH] ARGV: use include? for --HEAD ARGV.build_head? will return true if the typo '-HEAD' is passed because it uses flag? to detect the option. However, we only filter the exact spelling of '--HEAD' in ARGV.filter_for_dependencies, and thus the HEAD property is undesirably passed to deps during installation. Since we never advertised '-H' as a valid short option for '--HEAD', just use include? instead of flag?. Signed-off-by: Jack Nagel --- Library/Homebrew/extend/ARGV.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb index afb0386974..fc3039cc80 100644 --- a/Library/Homebrew/extend/ARGV.rb +++ b/Library/Homebrew/extend/ARGV.rb @@ -89,7 +89,7 @@ module HomebrewArgvExtension end def build_head? - flag? '--HEAD' + include? '--HEAD' end def build_devel?