diff --git a/app/presenters/ci/build_runner_presenter.rb b/app/presenters/ci/build_runner_presenter.rb index 33b7899f9122a8b529f9324e710fbae1c9ee39c0..a409a3d71607ccb5c47dfcf845f14204e72f6a1b 100644 --- a/app/presenters/ci/build_runner_presenter.rb +++ b/app/presenters/ci/build_runner_presenter.rb @@ -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 diff --git a/spec/presenters/ci/build_runner_presenter_spec.rb b/spec/presenters/ci/build_runner_presenter_spec.rb index 0635c3189424aa9f20641a624c133603c5494323..28806a1c7e3163d8297aff782f8edf732cff03dd 100644 --- a/spec/presenters/ci/build_runner_presenter_spec.rb +++ b/spec/presenters/ci/build_runner_presenter_spec.rb @@ -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