aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-18 09:20:47 -0700
committerAdam Vandenberg2010-07-18 10:44:31 -0700
commit826ab8be71a7e3d5acbfed0f3ea4a6cd3498f6eb (patch)
treec4785696c1bd8778e9992e1212fc422006604eee
parent21c37fbac6b94afd44da4ce0b0fc1599b8165fde (diff)
downloadbrew-826ab8be71a7e3d5acbfed0f3ea4a6cd3498f6eb.tar.bz2
Use build_head here too.
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 325ec8408..d6dbb7441 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