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