Skip to content

Fix Error 500 when viewing old merge requests with bad diff data

Stan Hu requested to merge sh-fix-issue-20776 into master

Customers running old versions of GitLab may have MergeRequestDiffs with the text ["--broken diff"] due to text generated by gitlab_git 1.0.3. To avoid the Error 500, verify that each element is a type that gitlab_git will accept before attempting to create a DiffCollection.

Closes #20776 (closed)

Merge request reports