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:
Mike McQuaid 2015-03-24 09:13:42 +00:00
parent 86006ba36b
commit 959d92a84a

View File

@ -543,8 +543,8 @@ module Homebrew
checkout_args = [] checkout_args = []
if ARGV.include? '--cleanup' if ARGV.include? '--cleanup'
test "git", "clean", "-fdx" git "clean", "-fdx"
test "git", "clean", "-ffdx" if steps.last.failed? test "git", "clean", "-ffdx" unless $?.success?
checkout_args << "-f" checkout_args << "-f"
end end