[go: up one dir, main page]

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.

  1. On the left sidebar, select Search or go to and find your project.
  2. Select Settings > CI/CD.
  3. Expand General pipelines.
  4. 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 to 0.

Newly created projects have a default git depth value of 20.

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.

Merge request reports

Loading