From 697dab5afcecd4aefcb5301953d5488b3718c0d4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 16 Apr 2012 13:03:48 -0500 Subject: git: install OS X keychain credential helper Git can cache credentials used when accessing remotes over HTTP; this helper provides integration with the OS X keychain. Signed-off-by: Jack Nagel --- Library/Formula/git.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library') diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 8fed7ef49..70fe8b3fa 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -52,6 +52,13 @@ class Git < Formula "LDFLAGS=#{ENV.ldflags}", "install" + # Install the OS X keychain credential helper + cd 'contrib/credential/osxkeychain' do + system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}" + bin.install 'git-credential-osxkeychain' + system "make", "clean" + end + # install the completion script first because it is inside 'contrib' (prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash' (share+'git-core').install 'contrib' @@ -66,6 +73,9 @@ class Git < Formula Bash completion has been installed to: #{etc}/bash_completion.d + The OS X keychain credential helper has been installed to: + #{HOMEBREW_PREFIX}/bin/git-credential-osxkeychain + The 'contrib' directory has been installed to: #{HOMEBREW_PREFIX}/share/git-core/contrib EOS -- cgit v1.2.3