Skip to content
Snippets Groups Projects
Commit e70a3552 authored by Andrew Janke's avatar Andrew Janke Committed by Xu Cheng
Browse files

test-bot: exclude Taps dir from root cleanup

parent 6283a274
No related branches found
No related tags found
No related merge requests found
......@@ -645,7 +645,7 @@ module Homebrew
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" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
end
pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock"
Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock }
......@@ -669,7 +669,7 @@ module Homebrew
test "git", "clean", "-ffdx"
HOMEBREW_REPOSITORY.cd do
safe_system "git", "reset", "--hard"
safe_system "git", "clean", "-ffdx"
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/"
end
if ARGV.include? "--local"
FileUtils.rm_rf ENV["HOMEBREW_HOME"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment