Fix batch commit API

This commit is contained in:
Douwe Maan 2017-08-04 19:25:35 +02:00
parent d41479266d
commit 9c7602d104
1 changed files with 2 additions and 1 deletions

View File

@ -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