Commit 98604883 authored by Stan Hu's avatar Stan Hu

Fix missing Bitbucket ProjectController changes for specifying namespace/project

parent e2688fee
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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment