Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 697dab5

Browse files
committed
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>
1 parent 513314f commit 697dab5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Library/Formula/git.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ def install
5252
"LDFLAGS=#{ENV.ldflags}",
5353
"install"
5454

55+
# Install the OS X keychain credential helper
56+
cd 'contrib/credential/osxkeychain' do
57+
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
58+
bin.install 'git-credential-osxkeychain'
59+
system "make", "clean"
60+
end
61+
5562
# install the completion script first because it is inside 'contrib'
5663
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash'
5764
(share+'git-core').install 'contrib'
@@ -66,6 +73,9 @@ def caveats; <<-EOS.undent
6673
Bash completion has been installed to:
6774
#{etc}/bash_completion.d
6875
76+
The OS X keychain credential helper has been installed to:
77+
#{HOMEBREW_PREFIX}/bin/git-credential-osxkeychain
78+
6979
The 'contrib' directory has been installed to:
7080
#{HOMEBREW_PREFIX}/share/git-core/contrib
7181
EOS

0 commit comments

Comments
 (0)