diff options
| author | Misty De Meo | 2013-01-29 09:33:30 -0600 |
|---|---|---|
| committer | Misty De Meo | 2013-01-29 09:48:43 -0600 |
| commit | cf0c4e90a6c3daa093a05f836cf82a0c23dd548d (patch) | |
| tree | 870349204cd57ab00c8c270c99dfa710a868d5da | |
| parent | fccbaf44607cc0ac826a71be2fa87748ad2598f7 (diff) | |
| download | homebrew-cf0c4e90a6c3daa093a05f836cf82a0c23dd548d.tar.bz2 | |
Don't print git origin check without git repo
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
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 |
