aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMisty De Meo2013-01-29 09:33:30 -0600
committerMisty De Meo2013-01-29 09:48:43 -0600
commit14bb39b898858f5a6a03999f24ddad4a0d4e7d7a (patch)
treed2c450b04ee73f4f38b7aabb9a4c634a3361a3b9 /Library/Homebrew/cmd
parent667abe8185ab2af150a8cd79f00a56a6b95f52ad (diff)
downloadbrew-14bb39b898858f5a6a03999f24ddad4a0d4e7d7a.tar.bz2
Don't print git origin check without git repo
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index cc294c7b7..c8df1c742 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