aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-08-11 14:18:26 +0100
committerMike McQuaid2015-08-11 18:06:07 +0100
commit3350f9018a6c45c0f449da23b0437a2d6e410ed1 (patch)
tree9003425121db0bb44cfd593562d8da90fe50b275 /Library/Homebrew/cmd
parent36272dbaa6dd5cc4c77f5ef8a0386b32ee15bb10 (diff)
downloadbrew-3350f9018a6c45c0f449da23b0437a2d6e410ed1.tar.bz2
test-bot: run `git gc` on cleanup.
Closes Homebrew/homebrew#42805. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 6dcd301aa..96dd8d7e3 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -575,6 +575,7 @@ module Homebrew
def cleanup_before
@category = __method__
return unless ARGV.include? "--cleanup"
+ git "gc", "--auto"
git "stash"
git "am", "--abort"
git "rebase", "--abort"
@@ -604,6 +605,7 @@ module Homebrew
test "git", "reset", "--hard"
git "stash", "pop"
test "brew", "cleanup", "--prune=30"
+ git "gc", "--auto"
end
FileUtils.rm_rf @brewbot_root unless ARGV.include? "--keep-logs"