diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 325ec8408c..d6dbb74411 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -78,7 +78,7 @@ class Formula set_instance_variable 'head' set_instance_variable 'specs' - if @head and (not @url or ARGV.flag? '--HEAD') + if @head and (not @url or ARGV.build_head?) @url=@head @version='HEAD' end