Merge pull request #13764 from Homebrew/doctor_tap_core

diagnostic: automatically tap homebrew/core.
This commit is contained in:
Mike McQuaid 2022-08-30 06:54:43 +01:00 committed by GitHub
commit 877fff74e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,7 +591,11 @@ module Homebrew
def check_coretap_integrity
coretap = CoreTap.instance
return if !coretap.installed? && EnvConfig.install_from_api?
unless coretap.installed?
return if EnvConfig.install_from_api?
CoreTap.ensure_installed!
end
broken_tap(coretap) || examine_git_origin(coretap.path, Homebrew::EnvConfig.core_git_remote)
end