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