Commit a763194a authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'remove-ff-ci_project_git_depth' into 'master'

Remove FF ci_project_git_depth

See merge request gitlab-org/gitlab!30588
parents ee9f0224 a3562dd3
......@@ -27,7 +27,7 @@ module Ci
def git_depth
if git_depth_variable
git_depth_variable[:value]
elsif Feature.enabled?(:ci_project_git_depth, default_enabled: true)
else
project.ci_default_git_depth
end.to_i
end
......
......@@ -138,16 +138,6 @@ describe Ci::BuildRunnerPresenter do
it 'defaults to git depth setting for the project' do
expect(git_depth).to eq(build.project.ci_default_git_depth)
end
context 'when feature flag :ci_project_git_depth is disabled' do
before do
stub_feature_flags(ci_project_git_depth: { enabled: false })
end
it 'defaults to 0' do
expect(git_depth).to eq(0)
end
end
end
describe '#refspecs' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment