diff options
| author | Max Howell | 2012-08-29 09:03:41 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-29 12:41:37 -0400 |
| commit | b834027b179c72c47339b7dd65c7cbf2b8ed4b0a (patch) | |
| tree | 1e87903108449d6c0f8b7aa352f180d44baff922 /Library | |
| parent | 2cecc3bd517d8d411ea17bbf14c988b6478005e2 (diff) | |
| download | brew-b834027b179c72c47339b7dd65c7cbf2b8ed4b0a.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 |
