BigW Consortium Gitlab

Fix 500 error on compare page

parent b5654eb4
......@@ -170,7 +170,7 @@ module DiffHelper
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
else
@commit
end
......
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