Merge pull request #11436 from hyuraku/add_cask-tap_to_check_git_status

add cask tap to Diagnostic::Checks#check_git_status
This commit is contained in:
Rylan Polster 2021-05-30 10:45:37 -04:00 committed by GitHub
commit 990d5f048f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,10 +679,17 @@ module Homebrew
message = nil
{
repos = {
"Homebrew/brew" => HOMEBREW_REPOSITORY,
"Homebrew/homebrew-core" => CoreTap.instance.path,
}.each do |name, path|
}
%w[cask cask-drivers cask-fonts cask-versions].each do |tap|
cask_tap = Tap.fetch "homebrew", tap
repos[cask_tap.full_name] = cask_tap.path if cask_tap.installed?
end
repos.each do |name, path|
status = path.cd do
`git status --untracked-files=all --porcelain 2>/dev/null`
end