The git repo size is large and maybe the postBuffer size is not
large enough and this will cause git commands' failure of '128'.
Fixes: https://tracker.ceph.com/issues/59413
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
cafbe1cf1568eab894d21899f1ec40320a019ee9)
set -e
+# increase the cache size
+sudo git config --global http.sslVerify false
+sudo git config --global http.postBuffer 1048576000
+
# try it again if the clone is slow and the second time
retried=false
trap -- 'retry' EXIT