aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Backstrom2012-09-24 13:00:46 -0400
committerAdam Vandenberg2012-09-25 06:45:12 -0700
commit41606d72daf60bf8ff990310e6490aca91d8d06f (patch)
tree2db7dcec9d9e53808eae9dc25488af58eaccf3b7 /Library
parentec11ea3639220aaaaeb80559c3a1f00356adccce (diff)
downloadhomebrew-41606d72daf60bf8ff990310e6490aca91d8d06f.tar.bz2
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 #12897. Closes #15085. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 1cd145269..41a7ff8fa 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -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'