doctor: skip outdated_homebrew check when no git
This commit is contained in:
parent
faf332054f
commit
d1baf42d94
@ -844,6 +844,7 @@ def check_for_bad_python_symlink
|
||||
end
|
||||
|
||||
def check_for_outdated_homebrew
|
||||
return unless which 'git'
|
||||
HOMEBREW_REPOSITORY.cd do
|
||||
if File.directory? ".git"
|
||||
local = `git rev-parse -q --verify refs/remotes/origin/master`.chomp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user