Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-08-17 13:43:12 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-09-04 15:17:01 +0300
commita24d4b3c674452ecb63f5a250b619362cc24630c (patch)
treeefd1af6551b2d398488fd6445e378331e1fe8dea /lib
parentfe08bdf3961c6bc7db038b3c4e7c3e7d65d2344d (diff)
Use deep_dup to duplicate hash in CI/CD extendable config
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/config/extendable/collection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/extendable/collection.rb b/lib/gitlab/ci/config/extendable/collection.rb
index cdc8eb6614d..b57b3aa5d47 100644
--- a/lib/gitlab/ci/config/extendable/collection.rb
+++ b/lib/gitlab/ci/config/extendable/collection.rb
@@ -10,7 +10,7 @@ module Gitlab
CircularDependencyError = Class.new(ExtensionError)
def initialize(hash)
- @hash = hash.dup
+ @hash = hash.deep_dup
each { |entry| entry.extend! if entry.extensible? }
end