summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-02-14 12:38:51 +0000
committerDouwe Maan <douwe@gitlab.com>2018-02-14 12:38:51 +0000
commit44dc11f12e95e4968d51669d6d033f5ba795122e (patch)
tree7d6ac30749fb282aa816d3f1af9b2e241b6773f9 /lib
parent12447f12e0ec7bb026b385fc0695bcdca101ad61 (diff)
parentb5db95624d8e0bc8c60d3ce82ef0bd8619c6064f (diff)
downloadgitlab-ce-44dc11f12e95e4968d51669d6d033f5ba795122e.tar.gz
Merge branch 'fix/template-project-visibility' into 'master'
Respect description and visibility when creating project from template Closes #42601 See merge request gitlab-org/gitlab-ce!16820
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/import_export/project_creator.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/gitlab/import_export/project_creator.rb b/lib/gitlab/import_export/project_creator.rb
deleted file mode 100644
index 77bb3ca6581..00000000000
--- a/lib/gitlab/import_export/project_creator.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-module Gitlab
- module ImportExport
- class ProjectCreator
- def initialize(namespace_id, current_user, file, project_path)
- @namespace_id = namespace_id
- @current_user = current_user
- @file = file
- @project_path = project_path
- end
-
- def execute
- ::Projects::CreateService.new(
- @current_user,
- name: @project_path,
- path: @project_path,
- namespace_id: @namespace_id,
- import_type: "gitlab_project",
- import_source: @file
- ).execute
- end
- end
- end
-end