From a0799bfbf9a0ffb87d50ece8c5de26f75bf371b2 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Mon, 24 May 2021 23:30:46 +0900 Subject: [PATCH] add cask tap to Diagnostic::Checks#check_git_status --- Library/Homebrew/diagnostic.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index ade58101d1..8d10a623f0 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -679,10 +679,16 @@ module Homebrew message = nil - { + taps = { "Homebrew/brew" => HOMEBREW_REPOSITORY, "Homebrew/homebrew-core" => CoreTap.instance.path, - }.each do |name, path| + } + + if Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-cask").exist? + taps["Homebrew/homebrew-cask"] = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-cask") + end + + taps.each do |name, path| status = path.cd do `git status --untracked-files=all --porcelain 2>/dev/null` end