aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-02-27 13:53:29 +0000
committerMike McQuaid2015-02-27 13:53:29 +0000
commitb4c4e723f3656954f160b3f8df4e8804e4a46acd (patch)
treea323005db396840531357827f1c15fd63cdb689f /Library
parent00667c7ac3c6641278ca39652e62cea7af430ddf (diff)
downloadhomebrew-b4c4e723f3656954f160b3f8df4e8804e4a46acd.tar.bz2
test-bot: cleanup old PR locks.
This is a problem on older versions of Git (such as on the Mountain Lion bot).
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 8ea39bf5c..b7a9ad384 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -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