diff options
author | Stan Hu <stanhu@gmail.com> | 2016-11-12 03:07:16 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-11-22 03:47:28 +0300 |
commit | 9860488360681a3b10c3de04606ef931c3639601 (patch) | |
tree | 66e933ab2fc1b705121804a3127fa73a0f84d063 /lib/gitlab/bitbucket_import | |
parent | e2688feeb3075265fb926bbd68560b2046afa0c5 (diff) |
Fix missing Bitbucket ProjectController changes for specifying namespace/project
Diffstat (limited to 'lib/gitlab/bitbucket_import')
-rw-r--r-- | lib/gitlab/bitbucket_import/project_creator.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/gitlab/bitbucket_import/project_creator.rb b/lib/gitlab/bitbucket_import/project_creator.rb index 9d80c5d4f2b..b34be272af3 100644 --- a/lib/gitlab/bitbucket_import/project_creator.rb +++ b/lib/gitlab/bitbucket_import/project_creator.rb @@ -1,10 +1,11 @@ module Gitlab module BitbucketImport class ProjectCreator - attr_reader :repo, :namespace, :current_user, :session_data + attr_reader :repo, :name, :namespace, :current_user, :session_data - def initialize(repo, namespace, current_user, session_data) + def initialize(repo, name, namespace, current_user, session_data) @repo = repo + @name = name @namespace = namespace @current_user = current_user @session_data = session_data @@ -13,8 +14,8 @@ module Gitlab def execute ::Projects::CreateService.new( current_user, - name: repo.name, - path: repo.slug, + name: name, + path: name, description: repo.description, namespace_id: namespace.id, visibility_level: repo.visibility_level, |