doctor: skip git origin check without brew repo

Likely fixes Homebrew/homebrew#18324.
This commit is contained in:
Misty De Meo 2013-03-11 10:29:40 -05:00
parent 06f98132d3
commit feb836e1ea

View File

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