diff options
| author | Misty De Meo | 2012-06-19 10:03:11 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-06-19 10:03:11 -0500 |
| commit | 9fa496bf1adfbbae11b23cc3b1a9b1c77b5b3511 (patch) | |
| tree | df3777f367d64145f19e6490e3e3d8e484ff69b4 /Library | |
| parent | 046498b72f2376e1755505cb924dab5cba463c45 (diff) | |
| download | homebrew-9fa496bf1adfbbae11b23cc3b1a9b1c77b5b3511.tar.bz2 | |
doctor: skip outdated_homebrew check when no git
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 1342f9a84..d4cd7f349 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -844,6 +844,7 @@ def check_for_bad_python_symlink end def check_for_outdated_homebrew + return unless which 'git' HOMEBREW_REPOSITORY.cd do if File.directory? ".git" local = `git rev-parse -q --verify refs/remotes/origin/master`.chomp |
