Hande error with huge commits

This commit is contained in:
randx 2012-06-20 20:08:18 +03:00
parent c7542eb801
commit 4ac0160a11
4 changed files with 40 additions and 33 deletions

View file

@ -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