diagnostic: automatically tap homebrew/core.

Otherwise, this just dies with `Error: No available tap homebrew/core.`.
This commit is contained in:
Mike McQuaid 2022-08-26 12:38:03 +00:00 committed by GitHub
parent 7617109d43
commit 631db5502d
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