aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-06-19 10:03:11 -0500
committerMisty De Meo2012-06-19 10:03:11 -0500
commitd1baf42d941973f01dbd71901dbbe9a521282236 (patch)
tree39d54df3866955fc4e94a6ad055337f659dbb76e /Library
parentfaf332054f9ad4439da1ad487ca065066aa1caaf (diff)
downloadbrew-d1baf42d941973f01dbd71901dbbe9a521282236.tar.bz2
doctor: skip outdated_homebrew check when no git
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 1342f9a84..d4cd7f349 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