Skip to content

Allow updating a branch by multiple commits

In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6130 we made Repository#commit_with_hooks a bit too strict; it only allowed updating a branch by one commit. It turns out there is a feature in GitLab Enterprise Edition where we update by multiple commits.

This change makes that possible, adds tests, and renames the method to the more appropriate 'update_branch_with_hooks'.

Merge request reports