From 0bade72bc04d4fd41ba0d0ea74648e650a593e60 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Mon, 11 Apr 2022 20:57:43 +0800 Subject: [PATCH] Don't print set git credential cache message if a helper exists for the tapped private repository --- Library/Homebrew/tap.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 6c241512a..f78d1eb61 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -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