gitlab-org--gitlab-foss/db
Krasimir Angelov ad9ae16d8a Add project level git depth setting
Introduce default_git_depth in project's CI/CD settings and set it to
50. Use it if there is no GIT_DEPTH variable specified. Apply this
default only to newly created projects and keep it nil for old ones
in order to not break pipelines that rely on non-shallow clones.

default_git_depth can be updated from CI/CD Settings in the UI, must be
either nil or integer between 0 and 1000 (incl).

Inherit default_git_depth from the origin project when forking projects.

MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it
contains unique commit (i.e. merge commit) which doesn't exist in the
other branch/tags refs. We need to add it cause otherwise it may break
pipelines for old projects that have already enabled Pipelines for merge
results and have git depth 0.

Document new default_git_depth project CI/CD setting
2019-06-06 09:21:18 +01:00
..
fixtures Provide a new gitlab:seed:issues task 2019-04-23 11:43:53 +02:00
importers Change the schema of the common_metrics.yml 2019-04-17 20:02:24 +08:00
migrate Add project level git depth setting 2019-06-06 09:21:18 +01:00
optional_migrations Add version 4.2 to all existing migrations 2018-11-22 13:18:28 +01:00
post_migrate Merge branch 'osw-reset-merge-status-from-mergeable-mrs' into 'master' 2019-05-31 20:46:19 +00:00
schema.rb Add project level git depth setting 2019-06-06 09:21:18 +01:00
seeds.rb