Merge pull request #2932 from escaped/repo-import-4.1-fix
Repo import 4.1 fix (empty repositories)
This commit is contained in:
commit
2e8db0dfc5
1 changed files with 2 additions and 1 deletions
|
@ -42,9 +42,10 @@ namespace :gitlab do
|
||||||
|
|
||||||
project_params = {
|
project_params = {
|
||||||
:name => path,
|
:name => path,
|
||||||
|
:namespace_id => Namespace.global_id,
|
||||||
}
|
}
|
||||||
|
|
||||||
project = Project.create_by_user(project_params, user)
|
project = Projects::CreateContext.new(user, project_params).execute
|
||||||
|
|
||||||
if project.valid?
|
if project.valid?
|
||||||
puts " * Created #{project.name} (#{repo_name})".green
|
puts " * Created #{project.name} (#{repo_name})".green
|
||||||
|
|
Loading…
Reference in a new issue