test-bot: fix path in cleanup_before
We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY.
This commit is contained in:
parent
df5bd0b796
commit
232eccc428
@ -640,7 +640,7 @@ module Homebrew
|
|||||||
git "reset", "--hard"
|
git "reset", "--hard"
|
||||||
git "checkout", "-f", "master"
|
git "checkout", "-f", "master"
|
||||||
git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
|
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 }
|
Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user