test-bot: first git clean should not be a test.
We don't care if it fails as we'll immediately run a stronger version afterwards (and we care if that fails).
This commit is contained in:
parent
86006ba36b
commit
959d92a84a
@ -543,8 +543,8 @@ module Homebrew
|
||||
|
||||
checkout_args = []
|
||||
if ARGV.include? '--cleanup'
|
||||
test "git", "clean", "-fdx"
|
||||
test "git", "clean", "-ffdx" if steps.last.failed?
|
||||
git "clean", "-fdx"
|
||||
test "git", "clean", "-ffdx" unless $?.success?
|
||||
checkout_args << "-f"
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user