mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
test-bot: don't cleanup brew repo twice.
This commit is contained in:
parent
3995d237dd
commit
ec1da60941
@ -683,12 +683,16 @@ module Homebrew
|
||||
git "reset", "--hard"
|
||||
git "checkout", "-f", "master"
|
||||
git "clean", "-ffdx"
|
||||
unless @repository == HOMEBREW_REPOSITORY
|
||||
HOMEBREW_REPOSITORY.cd do
|
||||
safe_system "git", "reset", "--hard"
|
||||
safe_system "git", "checkout", "-f", "master"
|
||||
# This will uninstall all formulae, as long as
|
||||
# HOMEBREW_REPOSITORY == HOMEBREW_PREFIX, which is true on the test bots
|
||||
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
|
||||
unless ENV["HOMEBREW_RUBY"] == "1.8.7"
|
||||
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/"
|
||||
end
|
||||
end
|
||||
end
|
||||
pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock"
|
||||
Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock }
|
||||
|
Loading…
x
Reference in New Issue
Block a user