Skip to content
Snippets Groups Projects
Commit 9c7602d1 authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix batch commit API

parent d4147926
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -63,7 +63,8 @@ module API
post ":id/repository/commits" do
authorize! :push_code, user_project
 
attrs[:branch_name] = declared_params.delete(:branch)
attrs = declared_params
attrs[:branch_name] = attrs.delete(:branch)
attrs[:start_branch] ||= attrs[:branch_name]
 
result = ::Files::MultiService.new(user_project, current_user, attrs).execute
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment