Skip to content
Snippets Groups Projects
Commit f64befdd authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #883 from MikeMcQuaid/test-bot-git-clean-less

test-bot: git clean less in cleanup_*.
parents 42e45a3d c6761894
No related branches found
No related tags found
No related merge requests found
......@@ -687,14 +687,13 @@ module Homebrew
git "checkout", "-f", "master"
git "reset", "--hard", "origin/master"
end
git "clean", "-ffdx", "--exclude=/Library/Taps/"
git "clean", "-ffdx"
Pathname.glob("{#{HOMEBREW_REPOSITORY},#{HOMEBREW_LIBRARY}/Taps/*/*}").each do |git_repo|
next if @repository == git_repo
git_repo.cd do
safe_system "git", "checkout", "-f", "master"
safe_system "git", "reset", "--hard", "origin/master"
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/"
end
end
......@@ -717,14 +716,15 @@ module Homebrew
git "stash", "pop"
test "brew", "cleanup", "--prune=7"
git "gc", "--auto"
test "git", "clean", "-ffdx", "--exclude=/Library/Taps/homebrew/homebrew-core"
test "git", "clean", "-ffdx"
Tap.names.each { |s| safe_system "brew", "untap", s if s != "homebrew/core" }
Pathname.glob("{#{HOMEBREW_REPOSITORY},#{HOMEBREW_LIBRARY}/Taps/*/*}").each do |git_repo|
next if @repository == git_repo
git_repo.cd do
safe_system "git", "checkout", "-f", "master"
safe_system "git", "reset", "--hard", "origin/master"
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/homebrew/homebrew-core"
end
end
......
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