doctor: reset should be done in HOMEBREW_REPOSITORY
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
ab31e50574
commit
c94e8b380f
@ -756,7 +756,7 @@ def check_git_status
|
|||||||
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 run:"
|
puts "Unless you know what you are doing, you should run:"
|
||||||
puts "cd "+HOMEBREW_PREFIX+" && git reset --hard"
|
puts "cd "+HOMEBREW_REPOSITORY+" && git reset --hard"
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user