Skip to content

Correctly find last known blob for file deleted in MR.

Douwe Maan requested to merge merge-request-deleted-file into master

Fixes #3092 (closed).

When building a new MR, @merge_request.commits.last would fail because this delegates to merge_request_diff which is still nil at that point. I fixed that, and changed some of the logic because showing deleted blob contents didn't previously work for the Compare page, and the UI would show the wrong commit sha for "View File @...".

Merge request reports