diff options
Diffstat (limited to 'app/controllers/commits_controller.rb')
-rw-r--r-- | app/controllers/commits_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb index 8a91c28480c..bbf5a672d7f 100644 --- a/app/controllers/commits_controller.rb +++ b/app/controllers/commits_controller.rb @@ -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 |