add cask tap to Diagnostic::Checks#check_git_status

This commit is contained in:
hyuraku 2021-05-24 23:30:46 +09:00
parent 1795b37ca3
commit a0799bfbf9

View File

@ -679,10 +679,16 @@ module Homebrew
message = nil message = nil
{ taps = {
"Homebrew/brew" => HOMEBREW_REPOSITORY, "Homebrew/brew" => HOMEBREW_REPOSITORY,
"Homebrew/homebrew-core" => CoreTap.instance.path, "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 status = path.cd do
`git status --untracked-files=all --porcelain 2>/dev/null` `git status --untracked-files=all --porcelain 2>/dev/null`
end end