Error 500 while displaying commit diff in project group
Created by: grivaldu
When trying to display commit diff in project that is assigned in project group, gitlab returns error 500.
Heres log dump:
Started GET "/retcms/k2/commit/a9804ad9247d057ef739c6b94240f5707945de97" for  at 2013-05-03 18:39:06 +0200
Processing by CommitController#show as HTML
  Parameters: {"project_id"=>"retcms/k2", "id"=>"a9804ad9247d057ef739c6b94240f5707945de97"}
  Rendered commit/_commit_box.html.haml (6.1ms)
  Rendered commits/_diff_head.html.haml (0.2ms)
  Rendered commits/_diffs.html.haml (3.8ms)
  Rendered commit/show.html.haml within layouts/project_resource (42.6ms)
Completed 500 Internal Server Error in 96ms
ActionView::Template::Error (could not find any magic files!):
    40:         .content
    41:           -# Skipp all non non-supported blobs
    42:           - next unless file.respond_to?('text?')
    43:           - if file.text?
    44:             = render "commits/text_file", diff: diff, index: i
    45:           - elsif file.image?
    46:             - old_file = Gitlab::Git::Blob.new(@repository, @commit.parent_id, @ref, diff.old_path) if @commit.parent_id
  app/views/commits/_diffs.html.haml:43:in `block in _app_views_commits__diffs_html_haml__3907926337635492105_36084660'
  app/views/commits/_diffs.html.haml:17:in `each'
  app/views/commits/_diffs.html.haml:17:in `each_with_index'
  app/views/commits/_diffs.html.haml:17:in `_app_views_commits__diffs_html_haml__3907926337635492105_36084660'
  app/views/commit/show.html.haml:10:in `_app_views_commit_show_html_haml___1887939273914824240_35516380'
Env info:
$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
(in /home/git/gitlab)
System information
System:         Ubuntu 11.10
Current User:   git
Using RVM:      no
Ruby Version:   1.9.3p392
Gem Version:    1.8.23
Bundler Version:1.3.5
Rake Version:   10.0.4
GitLab information
Version:        5.1.0
Revision:       e36372e
Directory:      /home/git/gitlab
DB Adapter:     mysql2
URL:            http://git.retconstellation.cz
HTTP Clone URL: http://git.retconstellation.cz/some-project.git
SSH Clone URL:  [email protected]:some-project.git
Using LDAP:     no
Using Omniauth: no
GitLab Shell
Version:        1.3.0
Repositories:   /home/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git