aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2012-01-24 19:35:41 +0000
committerMike McQuaid2012-01-24 19:36:10 +0000
commitd8a552c8d06e3878232500e58b6cf2e370844af0 (patch)
tree764931df872e9fa0860ff34828fc50b8ad8aa1cc
parenta10134e21adfc897ca7be3047e391f1952bbdac4 (diff)
downloadhomebrew-d8a552c8d06e3878232500e58b6cf2e370844af0.tar.bz2
Make brew doctor reset instructions clearer.
Fixes #9739.
-rw-r--r--Library/Homebrew/cmd/doctor.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index bc32883fe..84b21dd7c 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