GIT in OpenShift Build fails with "fatal: index-pack failed"
Issue
-
When running a build on OpenShift Container Platform, the
git clonecommand fails with the following error:Cloning "ssh://git@git.example.com:8888/myexample/example.git" ... error: Connection to git.example.com closed by remote host. fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed -
git clonefails for a large repository (>10GB) withfatal: index-pack failedandfatal: early EOF.
Environment
- Red Hat OpenShift Container Platform (OCP) 4.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.