Fix CI
From Limit the number of changes fetched during clone:
You can limit the number of changes that GitLab CI/CD fetches when it clones a repository.
- On the left sidebar, select Search or go to and find your project.
- Select Settings > CI/CD.
- Expand General pipelines.
- Under Git strategy, under Git shallow clone, enter a value. The maximum value is
1000. To disable shallow clone and make GitLab CI/CD fetch all branches and tags each time, keep the value empty or set to0.Newly created projects have a default
git depthvalue of20.
We're past that ridiculously small default limit:
$ git log --oneline $(git describe --tags --abbrev=0).. | wc -l
29
$
To avoid puzzling contributors with mysterious failures in their CI jobs, and asking them to change the settings of their repository, set the GIT_DEPTH variable. A depth of 500 should be good enough.