Infinite loop when viewing first commit
Created by: smithwinston
Create a new git repo, commit & push to gitlab. Go to the Commits tab and click on the initial commit. Gitlab hangs, eventually nginx gives a "Bad Gateway" error. Looking at production.log, I see the following repeated endlessly:
...
Rendered notes/_per_line_note_link.html.haml (0.1ms)
Rendered notes/_per_line_note_link.html.haml (0.1ms)
Rendered notes/_per_line_note_link.html.haml (0.1ms)
...
This repeats until presumably nginx terminates the request after timing out.
If you then push a second commit, there are no problems viewing that, just the initial commit. Previously with 3.2, I'd immediately get a "Oops something seems to have gone wrong" from Rails. Now in 4.0-stable, I get this infinite loop.
Running rake gitlab:env:info
gives:
System information
System: Ubuntu 12.04
Current User: gitlab
Using RVM: no
Ruby Version: 1.9.3p0
Gem Version: 1.8.11
Bundler Version:1.2.3
Rake Version: 10.0.1
GitLab information
Version: 4.0.0
Revision: a9e2fa4
Directory: /home/gitlab/gitlab
DB Adapter: mysql2
URL: [snip]
HTTP Clone URL: [snip]
SSH Clone URL: [snip]
Using LDAP: no
Using Omniauth: no
Gitolite information
Version: v3.04-4-g4524f01
Admin URI: git@localhost:gitolite-admin
Admin Key: gitlab
Repositories: /home/git/repositories/
Hooks: /home/git/.gitolite/hooks/
Git: /usr/bin/git