mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
add cask tap to Diagnostic::Checks#check_git_status
This commit is contained in:
parent
1795b37ca3
commit
a0799bfbf9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user