diff options
| author | Mike McQuaid | 2015-02-27 13:53:29 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2015-02-27 13:53:29 +0000 | 
| commit | 307ea17ba3adde76508c8d57c2ac3ad5c418dfc4 (patch) | |
| tree | 196f9d79ac2bd95084ffb191f4f2c20d664a48bb /Library/Homebrew/cmd/test-bot.rb | |
| parent | b9790ffe3af2daed9b2d50b253cc348f8cbbe0a7 (diff) | |
| download | brew-307ea17ba3adde76508c8d57c2ac3ad5c418dfc4.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/Homebrew/cmd/test-bot.rb')
| -rw-r--r-- | Library/Homebrew/cmd/test-bot.rb | 2 | 
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  | 
