test-bot: fix cleanup check.
HOMEBREW_RUBY_PATH is always set.
This commit is contained in:
parent
b745546943
commit
f7d3710d12
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user