ad2bfeb857
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. |
||
---|---|---|
.. | ||
conflicts | ||
add_todo_when_build_fails_service.rb | ||
assign_issues_service.rb | ||
base_service.rb | ||
build_service.rb | ||
close_service.rb | ||
create_from_issue_service.rb | ||
create_service.rb | ||
get_urls_service.rb | ||
merge_request_diff_cache_service.rb | ||
merge_service.rb | ||
merge_when_pipeline_succeeds_service.rb | ||
post_merge_service.rb | ||
refresh_service.rb | ||
reopen_service.rb | ||
resolved_discussion_notification_service.rb | ||
update_service.rb |