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
|
end
|
||||||
|
|
||||||
def check_for_outdated_homebrew
|
def check_for_outdated_homebrew
|
||||||
|
return unless which 'git'
|
||||||
HOMEBREW_REPOSITORY.cd do
|
HOMEBREW_REPOSITORY.cd do
|
||||||
if File.directory? ".git"
|
if File.directory? ".git"
|
||||||
local = `git rev-parse -q --verify refs/remotes/origin/master`.chomp
|
local = `git rev-parse -q --verify refs/remotes/origin/master`.chomp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user