Don't print set git credential cache message if a helper exists

for the tapped private repository
This commit is contained in:
xxyzz 2022-04-11 20:57:43 +08:00
parent 56415326bb
commit 0bade72bc0
No known key found for this signature in database
GPG Key ID: F796163E6DCFEE9D

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