gitlabhq/gitlabhq — Issue #204: Commit does not work after update files via git
Author: shurco
Created: 2011-12-15 11:21:20+00:00
State: open

When I want to see the commit (http://server/demoproject/commits/4a5ccc0c001e17451f5dfa372cb4d8ccff28247b) - I have always creates a new process 'Rack: / home / git / gitlabhq' which takes under her about 80-90% CPU
Page is not loaded!!
Here is what production.log:
Started GET "/demoproject/commits/4a5ccc0c001e17451f5dfa372cb4d8ccff28247b" for 192.168.157.42 at 2011-12-15 14:04:36 +0400
Processing by CommitsController#show as HTML
Parameters: {"project_id"=>"demoproject", "id"=>"4a5ccc0c001e17451f5dfa372cb4d8ccff28247b"}
Rendered commits/_diff_head.html.haml (2875.4ms)
Rendered commits/_text_file.html.haml (18532.1ms)
Rendered commits/_text_file.html.haml (19099.8ms)
Rendered commits/_text_file.html.haml (18882.0ms)
Rendered commits/_text_file.html.haml (18820.3ms)
Rendered commits/_text_file.html.haml (16011.9ms)
Rendered commits/_diff.html.haml (95640.4ms)
Rendered commits/show.html.haml within layouts/project (95647.0ms)
Completed 500 Internal Server Error in 95674ms

ActionView::Template::Error (SIGTERM):
1: %table
2: - line_old = 0
3: - line_new = 0
4: - diff_str = encode(diff.diff)
5: - lines_arr = diff_str.lines.to_a
6: - lines_arr.each do |line|
7: - next if line.match(/^--- \/dev\/null/)
lib/utils.rb:22:in `encode'
app/views/commits/_text_file.html.haml:4:in `_app_views_commits__text_file_html_haml__405581412_103264940'
app/views/commits/_diff.html.haml:18:in `block in _app_views_commits__diff_html_haml__1069865600_99868590'
app/views/commits/_diff.html.haml:4:in `each'
app/views/commits/_diff.html.haml:4:in `each_with_index'
app/views/commits/_diff.html.haml:4:in `_app_views_commits__diff_html_haml__1069865600_99868590'
app/views/commits/show.html.haml:26:in `_app_views_commits_show_html_haml___817436437_101363600'
app/controllers/commits_controller.rb:30:in `show'