test-bot: cleanup old PR locks.
This is a problem on older versions of Git (such as on the Mountain Lion bot).
This commit is contained in:
parent
b9790ffe3a
commit
307ea17ba3
@ -513,6 +513,8 @@ module Homebrew
|
|||||||
git "checkout", "-f", "master"
|
git "checkout", "-f", "master"
|
||||||
git "clean", "-fdx"
|
git "clean", "-fdx"
|
||||||
git "clean", "-ffdx" unless $?.success?
|
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
|
end
|
||||||
|
|
||||||
def cleanup_after
|
def cleanup_after
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user