Merge pull request #13117 from xxyzz/credential

Don't print set git credential cache message if a helper exists
This commit is contained in:
Mike McQuaid 2022-04-11 14:37:21 +01:00 committed by GitHub
commit 6a291c1e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,6 +350,10 @@ class Tap
return unless private? return unless private?
return if quiet return if quiet
path.cd do
return if Utils.popen_read("git", "config", "--get", "credential.helper").present?
end
$stderr.puts <<~EOS $stderr.puts <<~EOS
It looks like you tapped a private repository. To avoid entering your It looks like you tapped a private repository. To avoid entering your
credentials each time you update, you can use git HTTP credential credentials each time you update, you can use git HTTP credential