Don't print set git credential cache message if a helper exists
for the tapped private repository
This commit is contained in:
parent
56415326bb
commit
0bade72bc0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user