gitlabhq/gitlabhq — Issue #136: Oversized commits causes 500-s
Author: hackruu
Created: 2011-11-22 19:09:37+00:00
State: open

I got these errors in production.log If i push real big commit (webserver root for example, ~30MB) and then i try to view commit results.

Started GET "/rgpj/commits/08b1275a5ce019286fa9e264452d466cc7cd12d3" for 10.99.99.201 at 2011-11-22 23:05:54 +0400
Processing by CommitsController#show as HTML
Parameters: {"project_id"=>"rgpj", "id"=>"08b1275a5ce019286fa9e264452d466cc7cd12d3"}
Rendered commits/_diff_head.html.haml (128.8ms)
Rendered commits/_diff.html.haml (129.0ms)
Rendered commits/show.html.haml within layouts/project (130.2ms)
Completed 500 Internal Server Error in 140ms

ActionView::Template::Error (Grit::Git::GitTimeout):
1: %table
2: %thead
3: %th Files
4: - @commit.diffs.each do |diff|
5: %tr
6: %td
7: - if diff.deleted_file
app/views/commits/_diff_head.html.haml:4:in `_app_views_commits__diff_head_html_haml__4564756771552039705_49293740'
app/views/commits/_diff.html.haml:2:in `_app_views_commits__diff_html_haml__4253458010426326924_49594080'
app/views/commits/show.html.haml:29:in `_app_views_commits_show_html_haml__2715074514217847481_50449560'
app/controllers/commits_controller.rb:35:in `show'