diff --git a/lib/gitlab/import_export/importer.rb b/lib/gitlab/import_export/importer.rb index d73ce43b491830cd8640e639edcaa7a120602845..8020aab3da963c99f6526868f7a6ea1183aeef8c 100644 --- a/lib/gitlab/import_export/importer.rb +++ b/lib/gitlab/import_export/importer.rb @@ -7,7 +7,7 @@ module Gitlab new(*args).import end - def initialize(archive_file: , shared:) + def initialize(archive_file:, shared:) @archive_file = archive_file @shared = shared end diff --git a/lib/gitlab/import_export/project_tree_restorer.rb b/lib/gitlab/import_export/project_tree_restorer.rb index dc1e477a82ff51cbc3e8d4f2e278c850db3a88a4..935bc2d7df9e8f554cf8e698547e7bf7a5f60ac6 100644 --- a/lib/gitlab/import_export/project_tree_restorer.rb +++ b/lib/gitlab/import_export/project_tree_restorer.rb @@ -73,7 +73,7 @@ module Gitlab relation.values.flatten.each do |sub_relation| if sub_relation.is_a?(Hash) - relation_hash = relation_item[sub_relation.keys.first.to_s] + relation_hash = relation_item[sub_relation.keys.first.to_s] sub_relation = sub_relation.keys.first else relation_hash = relation_item[sub_relation.to_s] diff --git a/lib/gitlab/import_export/repo_restorer.rb b/lib/gitlab/import_export/repo_restorer.rb index d6dcf5dc11681e8c744d8b2298651ea4cf27d869..ef4d9c24067fa278b526df48ced4b83f3ec7d25b 100644 --- a/lib/gitlab/import_export/repo_restorer.rb +++ b/lib/gitlab/import_export/repo_restorer.rb @@ -11,7 +11,7 @@ module Gitlab end def restore - return false unless File.exists?(@path_to_bundle) || wiki? + return false unless File.exist?(@path_to_bundle) || wiki? FileUtils.mkdir_p(path_to_repo)