cjAdvertising/redmine_git_hosting — pull request #1 by kalw (2012-07-01 10:42:26+00:00)
Title: Small syntax error

Everything works execpt when the post-receive-hook happens :

```
Processing ApplicationController#post_receive (for 192.168.128.91 at 2012-06-30 20:34:20) [POST]
Parameters: {"asynch"=>"true", "action"=>"post_receive", "url"=>"http://localhost/githooks/post-receive", "refs"=>["13d94ca7c18a51b2d7662a1a6c19faa8e8a77b09,e8d68ff91b3bf3ae045c6f
079f841a35cc9fd6d1,refs/heads/master"], "clear_time"=>"1341088460", "controller"=>"gitolite_hooks", "debug"=>"false", "projectid"=>"tututu", "encoded_time"=>"7e81b6eec7da289b6b8f197
422e73385cb780a5c"}

SyntaxError (/usr/local/www/chiliproject/vendor/plugins/redmine_git_hosting/app/controllers/gitolite_hooks_controller.rb:148: syntax error, unexpected kDO_BLOCK, expecting '}'
payloads.each do |payload|
^
/usr/local/www/chiliproject/vendor/plugins/redmine_git_hosting/app/controllers/gitolite_hooks_controller.rb:156: syntax error, unexpected kEND, expecting '}'):
thin (1.2.11) lib/thin/connection.rb:84:in `pre_process'
thin (1.2.11) lib/thin/connection.rb:82:in `catch'
thin (1.2.11) lib/thin/connection.rb:82:in `pre_process'
thin (1.2.11) lib/thin/connection.rb:57:in `process'
thin (1.2.11) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.2.11) lib/thin/backends/base.rb:61:in `start'
thin (1.2.11) lib/thin/server.rb:159:in `start'
thin (1.2.11) lib/thin/controllers/controller.rb:86:in `start'
thin (1.2.11) lib/thin/runner.rb:185:in `send'
thin (1.2.11) lib/thin/runner.rb:185:in `run_command'
thin (1.2.11) lib/thin/runner.rb:151:in `run!'
thin (1.2.11) bin/thin:6
/usr/local/bin/thin:23:in `load'
/usr/local/bin/thin:23

Rendering /usr/local/www/chiliproject/public/500.html (500 Internal Server Error)
```

Corrected with this pull request.