aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-12-28 18:17:12 +0000
committerMike McQuaid2014-12-28 18:17:12 +0000
commit8c19b2a13e1c66527f1b960394f742f186ff80e1 (patch)
tree91e70cd6dc9ea4836c63719ed8ad31302d83410f /Library
parentaf4a156885c5f060afe240389e475b8450812a84 (diff)
downloadbrew-8c19b2a13e1c66527f1b960394f742f186ff80e1.tar.bz2
test-bot: clean harder if first clean fails.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index c57c39764..38b4f686d 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -475,7 +475,8 @@ module Homebrew
git "rebase", "--abort"
git "reset", "--hard"
git "checkout", "-f", "master"
- git "clean", "--force", "-dx"
+ git "clean", "-fdx"
+ # TODO: on failure rerun with: -ffdx
end
def cleanup_after
@@ -483,7 +484,8 @@ module Homebrew
checkout_args = []
if ARGV.include? '--cleanup'
- test "git", "clean", "--force", "-dx"
+ test "git", "clean", "-fdx"
+ test "git", "clean", "-ffdx" if steps.last.failed?
checkout_args << "-f"
end