diff options
| author | Misty De Meo | 2013-03-11 10:29:40 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-03-11 10:30:08 -0500 |
| commit | feb836e1ea3e0d5fa9faf13c0c9bce8a3803f40a (patch) | |
| tree | 122410a2966e1448d048598aec52e954d476ad7f /Library/Homebrew/cmd | |
| parent | 06f98132d309284c6b23311ceaeb0c539dcdd7c3 (diff) | |
| download | brew-feb836e1ea3e0d5fa9faf13c0c9bce8a3803f40a.tar.bz2 | |
doctor: skip git origin check without brew repo
Likely fixes Homebrew/homebrew#18324.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 3 |
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 |
