Skip to content

Commit

Permalink
Merge pull request #13117 from xxyzz/credential
Browse files Browse the repository at this point in the history
Don't print set git credential cache message if a helper exists
  • Loading branch information
MikeMcQuaid committed Apr 11, 2022
2 parents de6c4e5 + 0bade72 commit 6a291c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ def install(quiet: false, clone_target: nil, force_auto_update: nil, custom_remo
return unless private?
return if quiet

path.cd do
return if Utils.popen_read("git", "config", "--get", "credential.helper").present?
end

$stderr.puts <<~EOS
It looks like you tapped a private repository. To avoid entering your
credentials each time you update, you can use git HTTP credential
Expand Down

0 comments on commit 6a291c1

Please sign in to comment.