Commit 94ddf244 authored by Alain Takoudjou's avatar Alain Takoudjou

fixup! NXD Teach GitLab about patches

commit_with_hooks was replaced by GitOperationService: see https://gitlab.com/gitlab-org/gitlab-ce/commit/a52dc7cec70ef97b2755fb9cef7d6b489062310c
parent f71fb8c3
...@@ -974,7 +974,7 @@ class Repository ...@@ -974,7 +974,7 @@ class Repository
# for last patch make sure to update ref and invoke hooks # for last patch make sure to update ref and invoke hooks
else else
res = commit_with_hooks(user, target_branch) do |ref| res = GitOperationService.new(user, self).with_branch(target_branch) do |ref|
commit_options["update_ref"] = ref commit_options["update_ref"] = ref
Rugged::Commit.create(rugged, commit_options) Rugged::Commit.create(rugged, commit_options)
end end
......
...@@ -55,7 +55,7 @@ module MergeRequests ...@@ -55,7 +55,7 @@ module MergeRequests
options[:message] = mr_message if do_merge || (do_apply && merge_request.commits.size == 1) options[:message] = mr_message if do_merge || (do_apply && merge_request.commits.size == 1)
commit_id = do_merge \ commit_id = do_merge \
? repository.merge(current_user, merge_request.source_sha, merge_request.target_branch, options) ? repository.merge(current_user, source, merge_request, options)
: repository.apply_patches(current_user, merge_request.commits.reverse, merge_request.target_branch, options) : repository.apply_patches(current_user, merge_request.commits.reverse, merge_request.target_branch, options)
if commit_id if commit_id
......
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