diff options
| author | Samuel John | 2013-03-18 12:06:45 +0100 |
|---|---|---|
| committer | Samuel John | 2013-03-18 12:09:15 +0100 |
| commit | 5da30fa1f9976669fe8e75c4a047309d7f5c8845 (patch) | |
| tree | 5f54ab3664dd5001e1b79550672cf92ec722be04 | |
| parent | fb1b067b41792603d6ed486901635a2571eda441 (diff) | |
| download | homebrew-5da30fa1f9976669fe8e75c4a047309d7f5c8845.tar.bz2 | |
doctor: Tweak git-clean suggestion for empty dirs
git clean -f is not enough. Needs `-d` somtimes to
handle cases when we rename a dir.
Fixes #18544 and fixes #14224
| -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 06f3d8c6e..3eb04a505 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -924,7 +924,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}/Library && git stash && git clean -f + cd #{HOMEBREW_REPOSITORY}/Library && git stash && git clean -d -f EOS end end |
