test-bot: fix cleanup check.

HOMEBREW_RUBY_PATH is always set.
This commit is contained in:
Mike McQuaid 2015-12-07 13:48:28 +00:00
parent b745546943
commit f7d3710d12

View File

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