Use Commit#show instead of Commits#show to view a single commit
Commits#show (plural) is going to be for showing commit history on a specific path.
This commit is contained in:
parent
a21abce94f
commit
b389247c02
10 changed files with 40 additions and 28 deletions
|
@ -174,7 +174,7 @@ module Gitlab
|
|||
|
||||
def reference_commit(identifier)
|
||||
if commit = @project.commit(identifier)
|
||||
link_to(identifier, project_commit_path(@project, id: commit.id), html_options.merge(title: CommitDecorator.new(commit).link_title, class: "gfm gfm-commit #{html_options[:class]}"))
|
||||
link_to(identifier, project_commit_path(@project, commit), html_options.merge(title: CommitDecorator.new(commit).link_title, class: "gfm gfm-commit #{html_options[:class]}"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue