Skip to content

Commit 2a394a5

Browse files
committed
Add some GC options.
1 parent 1814620 commit 2a394a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ghbackup.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
puts "\nBacking up #{repo[:full_name]}..."
2828

2929
system('git', 'config', '--global', '--add', 'safe.directory', '*')
30-
system('git', 'config', '--global', '--add', 'fetch.prune', 'true')
30+
system('git', 'config', '--global', '--add', 'gc.auto', '0')
31+
system('git', 'config', '--global', '--add', 'gc.autopacklimit', '0')
32+
system('git', 'config', '--global', '--add', 'receive.autogc', 'false')
3133
system('git', 'config', '--global', '--add', 'fetch.parallel', '0')
3234
system('git', 'config', '--global', '--add', 'fetch.writeCommitGraph', 'true')
3335
system('git', 'config', '--global', '--add', 'fetch.negotiationAlgorithm', 'skipping')

0 commit comments

Comments
 (0)