Commit 9c7602d1 authored by Douwe Maan's avatar Douwe Maan

Fix batch commit API

parent d4147926
......@@ -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
......
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