Make brew doctor reset instructions clearer.

Fixes Homebrew/homebrew#9739.
This commit is contained in:
Mike McQuaid 2012-01-24 19:35:41 +00:00
parent 66fbb607fd
commit ab31e50574

View File

@ -755,7 +755,8 @@ def check_git_status
cmd = `git status -s Library/Homebrew/`.chomp cmd = `git status -s Library/Homebrew/`.chomp
if system "/usr/bin/which -s git" and File.directory? '.git' and not cmd.empty? if system "/usr/bin/which -s git" and File.directory? '.git' and not cmd.empty?
ohai "You have uncommitted modifications to Homebrew's core." ohai "You have uncommitted modifications to Homebrew's core."
puts "Unless you know what you are doing, you should: git reset --hard" puts "Unless you know what you are doing, you should run:"
puts "cd "+HOMEBREW_PREFIX+" && git reset --hard"
puts puts
end end
end end