diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-01-18 19:07:07 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-02-06 16:35:35 +0300 |
commit | 35882e681b681f68a818bda9a8d2624edfecc219 (patch) | |
tree | 0688bc4a1f770c1be480c412b4553522aefe9878 /app/controllers/projects | |
parent | 921d2afc6989dfa8220032984f657210c07e8792 (diff) |
Adds option to push over SSH to create a new project
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/git_http_controller.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb index 45a1a5cf0de..97c0f5b8c87 100644 --- a/app/controllers/projects/git_http_controller.rb +++ b/app/controllers/projects/git_http_controller.rb @@ -12,7 +12,7 @@ class Projects::GitHttpController < Projects::GitHttpClientController log_user_activity if upload_pack? if project.blank? && params[:service] == 'git-receive-pack' - @project = ::Projects::CreateService.new(access_actor, project_params).execute + @project = ::Projects::CreateService.new(user, project_params).execute return render_ok if @project.saved? end @@ -34,10 +34,10 @@ class Projects::GitHttpController < Projects::GitHttpClientController def project_params { - description: "", - path: params[:project_id].gsub("\.git", ''), - namespace_id: namespace.id.to_s, - visibility_level: Gitlab::VisibilityLevel::PRIVATE.to_s + description: "", + path: params[:project_id].gsub("\.git", ''), + namespace_id: namespace.id.to_s, + visibility_level: Gitlab::VisibilityLevel::PRIVATE.to_s } end |