From 232eccc4285712697d66f72bd39fa196b5ba1f98 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 3 Apr 2016 12:42:44 +0800 Subject: [PATCH] test-bot: fix path in cleanup_before We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY. --- Library/Homebrew/cmd/test-bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index a30a85e6a7..a594199fb8 100644 --- a/Library/Homebrew/cmd/test-bot.rb +++ b/Library/Homebrew/cmd/test-bot.rb @@ -640,7 +640,7 @@ module Homebrew git "reset", "--hard" git "checkout", "-f", "master" git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" - pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock" + pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock" Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock } end