Commit a3562dd3 authored by Shinya Maeda's avatar Shinya Maeda

Remove FF ci_project_git_depth

Remove redundant FF
parent d58353db
...@@ -27,7 +27,7 @@ module Ci ...@@ -27,7 +27,7 @@ module Ci
def git_depth def git_depth
if git_depth_variable if git_depth_variable
git_depth_variable[:value] git_depth_variable[:value]
elsif Feature.enabled?(:ci_project_git_depth, default_enabled: true) else
project.ci_default_git_depth project.ci_default_git_depth
end.to_i end.to_i
end end
......
...@@ -138,16 +138,6 @@ describe Ci::BuildRunnerPresenter do ...@@ -138,16 +138,6 @@ describe Ci::BuildRunnerPresenter do
it 'defaults to git depth setting for the project' do it 'defaults to git depth setting for the project' do
expect(git_depth).to eq(build.project.ci_default_git_depth) expect(git_depth).to eq(build.project.ci_default_git_depth)
end 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 end
describe '#refspecs' do 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