mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 23:46:56 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user