diff options
| author | Max Howell | 2012-08-29 09:03:41 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-29 12:41:37 -0400 |
| commit | 7a0802ef6e9358045b4c71f74e9c36e4a2621480 (patch) | |
| tree | c246f83214994c32b489d00328361860f401d242 /Library | |
| parent | 9aa121addd86460b6e1594c1c57875e746f56694 (diff) | |
| download | homebrew-7a0802ef6e9358045b4c71f74e9c36e4a2621480.tar.bz2 | |
Doctor suggest `git clean -f` if unstaged files
This is safe, I tested various scenarios, including Homebrew installed in ~. The only files that are removed are unexpected files in Homebrew's already managed directories.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index a6cedd2ff..0786d7c99 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -788,7 +788,7 @@ def check_git_status If this a surprise to you, then you should stash these modifications. Stashing returns Homebrew to a pristine state but can be undone should you later need to do so for some reason. - cd #{HOMEBREW_REPOSITORY} && git stash + cd #{HOMEBREW_REPOSITORY}/Library && git stash && git clean -f EOS end end |
