Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
git: install OS X keychain credential helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jacknagel committed Apr 16, 2012
1 parent 513314f commit 697dab5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/Formula/git.rb
Expand Up @@ -52,6 +52,13 @@ def install
"LDFLAGS=#{ENV.ldflags}", "LDFLAGS=#{ENV.ldflags}",
"install" "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' # 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-completion.bash'
(share+'git-core').install 'contrib' (share+'git-core').install 'contrib'
Expand All @@ -66,6 +73,9 @@ def caveats; <<-EOS.undent
Bash completion has been installed to: Bash completion has been installed to:
#{etc}/bash_completion.d #{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: The 'contrib' directory has been installed to:
#{HOMEBREW_PREFIX}/share/git-core/contrib #{HOMEBREW_PREFIX}/share/git-core/contrib
EOS EOS
Expand Down

0 comments on commit 697dab5

Please sign in to comment.