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:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-06-20 21:08:18 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-06-20 21:08:18 +0400
commit4ac0160a1184fe4acf86cd07040af78847577e11 (patch)
treed8685e48989c63284adc18aa29663c958394ecb6 /app/controllers/commits_controller.rb
parentc7542eb801ce0c538c442476e42f1d06d4e40fa9 (diff)
Hande error with huge commits
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