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:
parent
3e23386d02
commit
119d697e79
1 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue