Unverified Commit 4c43d846 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix 500 error on compare page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent edc1b8f66471
......@@ -170,7 +170,7 @@ def submodule_link(blob, ref, repository = @repository)
def commit_for_diff(diff)
if diff.deleted_file
@merge_request ? @merge_request.commits.last : @commit.parent_id
@merge_request ? @merge_request.commits.last : @commit.parents.first
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment