test-bot: cleanup more locks.

This commit is contained in:
Mike McQuaid 2015-05-14 08:45:39 +01:00
parent f242381e2a
commit d05d185d2e

View File

@ -543,7 +543,7 @@ module Homebrew
git "checkout", "-f", "master"
git "clean", "-fdx"
git "clean", "-ffdx" unless $?.success?
pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/head.lock"
pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock"
Dir.glob(pr_locks) {|lock| FileUtils.rm_rf lock }
end