gitlab-org--gitlab-foss/lib/gitlab/diff
Stan Hu 0f61bb2dc5
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>
2016-11-14 15:57:01 +01:00
..
file_collection
diff_refs.rb
file.rb Fix Error 500 when creating a merge request that contains an image that was deleted and added 2016-11-14 15:57:01 +01:00
highlight.rb
inline_diff.rb
inline_diff_marker.rb
line.rb
line_code.rb
line_mapper.rb
parallel_diff.rb
parser.rb
position.rb
position_tracer.rb