After upgrading GitLab to v15.11.12
and GitLab Runners to v15.11.1
, I have started seeing the following error in some of the jobs which were working fine before: fatal: fetch-pack: invalid index-pack output
.
What is the reason for this? Why am I seeing this? It happens on git clone
or git checkout
.
I have found the following 4 solutions:
GIT_DEPTH
in the GitLab CI job to 1
.git
configuration as follows before running git checkout
or git clone
:
git config --global core.packedGitLimit 128m
git config --global core.packedGitWindowSize 128m
git config --global pack.deltaCacheSize 128m
git config --global pack.packSizeLimit 128m
git config --global pack.windowMemory 128m
git config --global http.postbuffer 5m
git
repository and store them somewhere else.