doctor: skip outdated_homebrew check when no git

This commit is contained in:
Misty De Meo 2012-06-19 10:03:11 -05:00
parent faf332054f
commit d1baf42d94

View File

@ -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