git-flow: fix broken HEAD build

Because the subordinate formula GitFlowCompletion defines 'head', its constructor
requires a 'name' argument when --HEAD is used.  The 'name' attribute is required
to create the Git repo for the formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
dinkypumpkin 2012-07-12 12:02:34 +01:00 committed by Adam Vandenberg
parent d1ca2a6931
commit e59e59211c

View file

@ -20,7 +20,7 @@ class GitFlow < Formula
def install
system "make", "prefix=#{prefix}", "install"
GitFlowCompletion.new.brew do
GitFlowCompletion.new('git-flow-completion').brew do
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
(share+'zsh/site-functions').install "git-flow-completion.zsh"
end