diff options
| author | Xu Cheng | 2016-04-03 12:42:44 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-04-03 14:31:12 +0800 |
| commit | 232eccc4285712697d66f72bd39fa196b5ba1f98 (patch) | |
| tree | 1a16b90890faee804d0c335aaea4017292e61ac8 | |
| parent | df5bd0b796fef6dd4df86d48a7684dd006430fbb (diff) | |
| download | brew-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.rb | 2 |
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 |
