gitlab-org--gitlab-foss/lib/gitlab/conflict
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
..
file.rb Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
file_collection.rb Fix conflict resolution from corrupted upstream 2017-05-12 20:47:51 +01:00
parser.rb Allow resolving conflicts with non-ASCII chars 2017-03-15 11:18:29 +00:00
resolution_error.rb Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00