• Stan Hu's avatar
    Fix Error 500 when viewing old merge requests with bad diff data · d4fab17d
    Stan Hu authored
    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
    d4fab17d
merge_request_diff_spec.rb 3.17 KB