Added unpackLimit config to receive-pack, fetch
This should help preventing git to unpack objects when receive a push from client OR when fetching from remote (in case of mirroring upstream) and store the pack transferred as-is.
The git-repack housekeeping process will handle most of the optimization in this case. But it will happen in the background and does not affect customer facing.
Worth to note that transfer.unpackLimit
includes receive.unpackLimit
+ fetch.unpackLimit
+ fastimport.unpackLimit
.
I dont find fastimport
being used anywhere in Gitaly so I only added the first 2 configs explicitly instead.
Edited by Son Luong Ngoc