Skip to content

Add project level git depth setting

Krasimir Angelov requested to merge 62418-project-default-git-depth into master

What does this MR do?

Add new project level CI/CD setting names default_git_depth and set it to 50 for new projects. Users can override it either from the UI or by setting GIT_DEPTH environment variable for their pipelines. Forked project will inherit the value from the origin project.

Does this MR meet the acceptance criteria?


Performance and testing


If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team


Edited by Kamil Trzciński

Merge request reports