Hande error with huge commits
This commit is contained in:
parent
c7542eb801
commit
4ac0160a11
4 changed files with 40 additions and 33 deletions
|
@ -41,6 +41,8 @@ class CommitsController < ApplicationController
|
|||
if @commit.diffs.size > 200 && !params[:force_show_diff]
|
||||
@suppress_diff = true
|
||||
end
|
||||
rescue Grit::Git::GitTimeout
|
||||
render "huge_commit"
|
||||
end
|
||||
|
||||
def compare
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue