better error handling for not found resource, gitolite error
This commit is contained in:
parent
9e6d0710e9
commit
7d279f9302
9 changed files with 73 additions and 7 deletions
|
@ -26,6 +26,9 @@ class CommitsController < ApplicationController
|
|||
|
||||
def show
|
||||
@commit = project.commit(params[:id])
|
||||
|
||||
git_not_found! and return unless @commit
|
||||
|
||||
@notes = project.commit_notes(@commit).fresh.limit(20)
|
||||
@note = @project.build_commit_note(@commit)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue