test-bot: don't cleanup before on Travis.

As we may be using a Ruby 1.8 that this will delete.
This commit is contained in:
Mike McQuaid 2015-11-19 13:18:21 +00:00
parent 6c5419fc5b
commit 1a8f6388a6

View File

@ -647,7 +647,7 @@ module Homebrew
git "rebase", "--abort" git "rebase", "--abort"
git "reset", "--hard" git "reset", "--hard"
git "checkout", "-f", "master" git "checkout", "-f", "master"
git "clean", "-ffdx" git "clean", "-ffdx" unless ENV["TRAVIS"]
pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock" pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock"
Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock } Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock }
end end