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
+4
View File
@@ -350,6 +350,10 @@ class Tap
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