Skip to content

Do not create a MergeRequestDiff record when source branch is deleted

What does this MR do?

It prevents creating a MergeRequestDiff record that later causes errors described in #23413 (closed) and #23897 (closed).

Are there points in the code the reviewer needs to double check?

  • Is this empty MergeRequestDiff that we used to create necessary in some less obvious scenario?

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Fixes #23413 (closed) Fixes #23897 (closed)

Merge request reports