git: also install git-subtree

The git-subtree formula was removed by b3a0a433c, as subtree is now
delivered with mainline Git. This commit ensures subtree is available in
the default install. The manpage is not installed.

See Homebrew/homebrew#12897.

Closes Homebrew/homebrew#15085.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Adam Backstrom 2012-09-24 13:00:46 -04:00 committed by Adam Vandenberg
parent 3e23386d02
commit 119d697e79

View file

@ -57,6 +57,14 @@ class Git < Formula
system "make", "clean"
end
# Install git-subtree
cd 'contrib/subtree' do
system "make", "CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"LDFLAGS=#{ENV.ldflags}"
bin.install 'git-subtree'
end
# install the completion script first because it is inside 'contrib'
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash'
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-prompt.sh'