From feb836e1ea3e0d5fa9faf13c0c9bce8a3803f40a Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 11 Mar 2013 10:29:40 -0500 Subject: doctor: skip git origin check without brew repo Likely fixes Homebrew/homebrew#18324.--- Library/Homebrew/cmd/doctor.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index b0d127b3b..59c01ef22 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -782,6 +782,9 @@ def check_the_git_origin return unless which "git" return if check_for_git_origin + # otherwise this will nag users with no repo about their remote + return unless (HOMEBREW_REPOSITORY/'.git').exist? + HOMEBREW_REPOSITORY.cd do origin = `git config --get remote.origin.url`.chomp -- cgit v1.2.3