From ab31e50574fd70597c3cbe6c90914cc4fcf4b382 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 24 Jan 2012 19:35:41 +0000 Subject: [PATCH] Make brew doctor reset instructions clearer. Fixes Homebrew/homebrew#9739. --- Library/Homebrew/cmd/doctor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index bc32883fef..84b21dd7c8 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -755,7 +755,8 @@ def check_git_status cmd = `git status -s Library/Homebrew/`.chomp if system "/usr/bin/which -s git" and File.directory? '.git' and not cmd.empty? 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 end end