mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 20:09:41 -05:00
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 <jacknagel@gmail.com>
This commit is contained in:
1 parent
674f4c015b
commit
b7a4bc644a
1 file changed
+1
-1
@@ -89,7 +89,7 @@ module HomebrewArgvExtension
|
||||
end
|
||||
|
||||
def build_head?
|
||||
flag? '--HEAD'
|
||||
include? '--HEAD'
|
||||
end
|
||||
|
||||
def build_devel?
|
||||
|
||||
Reference in new issue
Block a user