Update projects.rb

parent a0166866
...@@ -380,19 +380,11 @@ module API ...@@ -380,19 +380,11 @@ module API
authenticated_as_admin! authenticated_as_admin!
fork_from_project = find_project!(params[:forked_from_id]) fork_from_project = find_project!(params[:forked_from_id])
<<<<<<< HEAD
not_found!("Source Project") unless fork_from_project not_found!("Source Project") unless fork_from_project
result = ::Projects::ForkService.new(fork_from_project, current_user).execute(user_project) result = ::Projects::ForkService.new(fork_from_project, current_user).execute(user_project)
=======
not_found!("Source Project") unless fork_from_project
result = ::Projects::ForkService.new(fork_from_project, current_user).execute(user_project)
>>>>>>> upstream/master
if result if result
present user_project.reload, with: Entities::Project present user_project.reload, with: Entities::Project
else else
......
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