From 14bb39b898858f5a6a03999f24ddad4a0d4e7d7a Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 29 Jan 2013 09:33:30 -0600 Subject: [PATCH] Don't print git origin check without git repo --- Library/Homebrew/cmd/doctor.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index cc294c7b7f..c8df1c7425 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -738,6 +738,8 @@ end def check_for_git_origin return unless which "git" + # otherwise this will nag users with no repo about their remote + return unless (HOMEBREW_REPOSITORY/'.git').exist? HOMEBREW_REPOSITORY.cd do if `git config --get remote.origin.url`.chomp.empty? then <<-EOS.undent