Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/commits_controller.rb')
-rw-r--r--app/controllers/commits_controller.rb2
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