Set to change the largest ref negotiation request that git will
handle during a fetch. The default value is 10MB and any fetch
requiring a larger buffer will not succeed.
This value should not normally need to be changed, but may be
helpful if you are fetching from a repository with an extremely
large number of refs.
Fixes: https://tracker.ceph.com/issues/66991
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
1d25782903e8b43fc97bc19ab3bf033196ec2122)
# increase the cache size
sudo git config --global http.sslVerify false
-sudo git config --global http.postBuffer 1048576000
+sudo git config --global http.postBuffer 1024MB # default is 1MB
+sudo git config --global http.maxRequestBuffer 100M # default is 10MB
+sudo git config --global core.compression 0
# try it again if the clone is slow and the second time
retried=false