• Dmitriy Zaporozhets's avatar
    Merge branch 'merge-request-deleted-file' into 'master' · 44d35a82
    Dmitriy Zaporozhets authored
    Correctly find last known blob for file deleted in MR.
    
    Fixes #3092.
    
    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 @...".
    
    See merge request !1647
    44d35a82
diff_helper.rb 5.19 KB