Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a3562dd3
Commit
a3562dd3
authored
Apr 28, 2020
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove FF ci_project_git_depth
Remove redundant FF
parent
d58353db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
app/presenters/ci/build_runner_presenter.rb
app/presenters/ci/build_runner_presenter.rb
+1
-1
spec/presenters/ci/build_runner_presenter_spec.rb
spec/presenters/ci/build_runner_presenter_spec.rb
+0
-10
No files found.
app/presenters/ci/build_runner_presenter.rb
View file @
a3562dd3
...
@@ -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
]
els
if
Feature
.
enabled?
(
:ci_project_git_depth
,
default_enabled:
true
)
els
e
project
.
ci_default_git_depth
project
.
ci_default_git_depth
end
.
to_i
end
.
to_i
end
end
...
...
spec/presenters/ci/build_runner_presenter_spec.rb
View file @
a3562dd3
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment