Skip to content
Snippets Groups Projects
Commit 307ea17b authored by Mike McQuaid's avatar Mike McQuaid
Browse files

test-bot: cleanup old PR locks.

This is a problem on older versions of Git (such as on the Mountain Lion bot).
parent b9790ffe
No related branches found
No related tags found
No related merge requests found
......@@ -513,6 +513,8 @@ module Homebrew
git "checkout", "-f", "master"
git "clean", "-fdx"
git "clean", "-ffdx" unless $?.success?
pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/head.lock"
Dir.glob(pr_locks) {|lock| FileUtils.rm_rf lock }
end
def cleanup_after
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment