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
10bf089f
Commit
10bf089f
authored
Jan 11, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply MR review suggestions
parent
c306eda8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
lib/gitlab/ci/variables/collection/sorted.rb
lib/gitlab/ci/variables/collection/sorted.rb
+2
-10
No files found.
lib/gitlab/ci/variables/collection/sorted.rb
View file @
10bf089f
...
@@ -35,17 +35,9 @@ module Gitlab
...
@@ -35,17 +35,9 @@ module Gitlab
# If a circular variable reference is found, the original array is returned
# If a circular variable reference is found, the original array is returned
def
sort
def
sort
return
@variables
if
Feature
.
disabled?
(
:variable_inside_variable
)
return
@variables
if
Feature
.
disabled?
(
:variable_inside_variable
)
return
@variables
if
errors
clear_memoization
(
:errors
)
tsort
begin
# Perform a topological sort
variables
=
tsort
strong_memoize
(
:errors
)
{
nil
}
rescue
TSort
::
Cyclic
variables
=
@variables
end
variables
end
end
private
private
...
...
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