aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-04-03 12:42:44 +0800
committerXu Cheng2016-04-03 14:31:12 +0800
commit232eccc4285712697d66f72bd39fa196b5ba1f98 (patch)
tree1a16b90890faee804d0c335aaea4017292e61ac8
parentdf5bd0b796fef6dd4df86d48a7684dd006430fbb (diff)
downloadbrew-232eccc4285712697d66f72bd39fa196b5ba1f98.tar.bz2
test-bot: fix path in cleanup_before
We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY.
-rw-r--r--Library/Homebrew/cmd/test-bot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index a30a85e6a..a594199fb 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