gitlab-org--gitlab-foss/app/services/merge_requests
Sean McGivern ad2bfeb857 Fix conflict resolution from corrupted upstream
I don't know why this happens exactly, but given an upstream and fork repository
from a customer, both of which required GC, resolving conflicts would corrupt
the fork so badly that it couldn't be cloned.

This isn't a perfect fix for that case, because the MR may still need to be
merged manually, but it does ensure that the repository is at least usable.

My best guess is that when we generate the index for the conflict
resolution (which we previously did in the target project), we obtain a
reference to an OID that doesn't exist in the source, even though we already
fetch the refs from the target into the source.

Explicitly setting the source project as the place to get the merge index from
seems to prevent repository corruption in this way.
2017-05-12 20:47:51 +01:00
..
conflicts Fix conflict resolution from corrupted upstream 2017-05-12 20:47:51 +01:00
add_todo_when_build_fails_service.rb
assign_issues_service.rb Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00
base_service.rb Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00
build_service.rb Fix 404 when upstream has disabled merge requests 2017-04-27 01:04:07 +03:00
close_service.rb
create_from_issue_service.rb Allow to create new branch and empty WIP merge request from issue page 2017-05-04 08:09:21 +00:00
create_service.rb
get_urls_service.rb Add ability to disable Merge Request URL on push 2017-03-17 12:35:39 +00:00
merge_request_diff_cache_service.rb
merge_service.rb Use exceptions for MergeService error handling 2017-02-28 11:54:02 +00:00
merge_when_pipeline_succeeds_service.rb Update occurrences of MWBS to MWPS 2017-03-01 12:02:02 +01:00
post_merge_service.rb
refresh_service.rb Update occurrences of MWBS to MWPS 2017-03-01 12:02:02 +01:00
reopen_service.rb
resolved_discussion_notification_service.rb
update_service.rb Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00