-
- Downloads
There was a problem fetching the pipeline summary.
Fix Error 500 when creating a merge request that contains an image that was deleted and added
Steps to reproduce:
1. Start with a repo with an image
2. Add a commit to delete the image
3. Add another commit to replace the image with another image
In a diff comparison, we really just compare about what the image was before the diff, not
the direct parent of the last commit. This MR fixes that.
Closes #3893, gitlab-org/gitlab-ee#678
Signed-off-by:
Rémy Coutable <remy@rymai.me>
parent
36fa5d66
No related branches found
No related tags found
Pipeline #
Showing
- app/views/projects/diffs/_content.html.haml 1 addition, 1 deletionapp/views/projects/diffs/_content.html.haml
- changelogs/unreleased/stanhu-gitlab-ce-fix-error-500-with-mr-images.yml 4 additions, 0 deletions...eleased/stanhu-gitlab-ce-fix-error-500-with-mr-images.yml
- lib/gitlab/diff/file.rb 8 additions, 5 deletionslib/gitlab/diff/file.rb
- spec/features/merge_requests/create_new_mr_spec.rb 10 additions, 0 deletionsspec/features/merge_requests/create_new_mr_spec.rb
- spec/lib/gitlab/diff/file_spec.rb 24 additions, 0 deletionsspec/lib/gitlab/diff/file_spec.rb
- spec/support/test_env.rb 1 addition, 0 deletionsspec/support/test_env.rb
Please register or sign in to comment