diff options
| author | Jack Nagel | 2012-04-16 13:03:48 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-16 13:06:37 -0500 |
| commit | 697dab5afcecd4aefcb5301953d5488b3718c0d4 (patch) | |
| tree | 53549e34ff4c93407dbfb6ee6a6bd0b7299ada08 /Library/Formula | |
| parent | 513314f4994b964a9216e067fa848f931e33eedf (diff) | |
| download | homebrew-697dab5afcecd4aefcb5301953d5488b3718c0d4.tar.bz2 | |
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
