aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-03-11 10:29:40 -0500
committerMisty De Meo2013-03-11 10:30:08 -0500
commit7a7ba86d767312f8947b422f38c6b553b9fb8cd4 (patch)
treec669e887a9750030803c24e825dc572f775c80ad /Library
parente469bc04fd6818e4772bcd6a7213d5fbede27703 (diff)
downloadhomebrew-7a7ba86d767312f8947b422f38c6b553b9fb8cd4.tar.bz2
doctor: skip git origin check without brew repo
Likely fixes #18324.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb3
1 files changed, 3 insertions, 0 deletions
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