Commit 1e1242d6 authored by charlie ablett's avatar charlie ablett

Merge branch 'pb-file-collection-kwargs' into 'master'

Fix Ruby 2.7 deprecation warnings for Conflict::FileCollection

See merge request gitlab-org/gitlab!43679
parents 304de9ee 677ff266
......@@ -21,11 +21,13 @@ module Gitlab
def resolve(user, commit_message, files)
msg = commit_message || default_commit_message
resolution = Gitlab::Git::Conflict::Resolution.new(user, files, msg)
args = {
resolver.resolve_conflicts(
@source_repo,
resolution,
source_branch: merge_request.source_branch,
target_branch: merge_request.target_branch
}
resolver.resolve_conflicts(@source_repo, resolution, args)
)
ensure
@merge_request.clear_memoized_shas
end
......
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