Commit 70bc3224 authored by Rubén Dávila's avatar Rubén Dávila

Use the adequate reference for the old rev. #3945

parent 8dfad143
...@@ -59,7 +59,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -59,7 +59,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
def diffs def diffs
@commit = @merge_request.last_commit @commit = @merge_request.last_commit
@first_commit = @merge_request.first_commit @first_commit = @merge_request.first_commit
@diff_refs = [@merge_request.target_sha, @merge_request.source_sha] @diff_refs = [@merge_request.last_commit.parent_id, @merge_request.source_sha]
@comments_allowed = @reply_allowed = true @comments_allowed = @reply_allowed = true
@comments_target = { @comments_target = {
......
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