BigW Consortium Gitlab

Commit 1161cf2e by Rubén Dávila

Use current commit id if it doesn't have a parent. #3945

parent 0f0af191
......@@ -72,7 +72,7 @@ class Projects::CommitController < Projects::ApplicationController
@diffs = commit.diffs
end
@diff_refs = [commit.parent.id, commit.id]
@diff_refs = [commit.parent_id || commit.id, commit.id]
@notes_count = commit.notes.count
@statuses = ci_commit.statuses if ci_commit
......
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