From d1baf42d941973f01dbd71901dbbe9a521282236 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 19 Jun 2012 10:03:11 -0500 Subject: [PATCH] doctor: skip outdated_homebrew check when no git --- Library/Homebrew/cmd/doctor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 1342f9a84f..d4cd7f349a 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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