Compare / View Commit broken after upgrade to 5.0.1 [500 Internal Server Error]
Created by: Philzen
When calling any commit / compare that contains diff lines, a 500 error comes up with the following information:
Started GET "/meteoplus/iwk-android/commit/9dab0cef11300999e7278e6e49a3eac9e18a982b" for 127.0.0.1 at 2013-04-22 23:33:20 +0200
Processing by CommitController#show as HTML
Parameters: {"project_id"=>"meteoplus/iwk-android", "id"=>"9dab0cef11300999e7278e6e49a3eac9e18a982b"}
Rendered commits/_commit_box.html.haml (5.3ms)
Rendered commits/_diff_head.html.haml (0.2ms)
Rendered commits/_diffs.html.haml (4.2ms)
Rendered commit/show.html.haml within layouts/project_resource (23.4ms)
Completed 500 Internal Server Error in 73ms
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 = (@commit.prev_commit.tree / diff.old_path) if [email protected]_commit.nil?
app/views/commits/_diffs.html.haml:43:in `block in _app_views_commits__diffs_html_haml___2053806156892798123_17257791780'
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___2053806156892798123_17257791780'
app/views/compare/show.html.haml:23:in `_app_views_compare_show_html_haml___3361087872872665237_17259508880'
Looks similar to #3165 (closed), but it's reported against 4.2. Runnning 4.2 i never experienced this problem (actually for my system that was the most stable version since i fell in love with gitlab back at the 2.7 release).
Here's my config info:
System information
lsb_release: not found
sw_vers: not found
System: unknown
Current User: git
Using RVM: no
Ruby Version: 1.9.3p392
Gem Version: 1.8.25
Bundler Version:1.2.3
Rake Version: 10.0.3
GitLab information
Version: 5.0.1
Revision: 951273f
Directory: /usr/home/git/gitlab
DB Adapter: postgresql
URL: http://www.mycoolserver.com
HTTP Clone URL: http://www.mycoolserver.com/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.2.0
Repositories: /usr/home/git/repositories/
Hooks: /usr/home/git/gitlab-shell/hooks/
Git: /usr/local/bin/git