gitlabhq/gitlabhq — Issue #19: Cant access project pages
Author: amrnt
Created: 2011-10-16 00:54:28+00:00
State: open

I dont know if its actually a bug or a problem with me.

I've just created a project, but when i tried to access the project i got these problems:

```sh
Started GET "/xxx" for 11.22.333.44 at 2011-10-16 00:48:40 +0000
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"xxx"}
Completed 500 Internal Server Error in 10ms

NoMethodError (undefined method `tree' for nil:NilClass):
app/controllers/projects_controller.rb:65:in `show'
```

```sh
Started GET "/xxx/commits" for 31.25.73.195 at 2011-10-16 00:52:08 +0000
Processing by CommitsController#index as HTML
Parameters: {"project_id"=>"xxx"}
Rendered commits/index.html.haml within layouts/application (7.2ms)
Completed 500 Internal Server Error in 101ms

ActionView::Template::Error (Permission denied - /home/git/repositories/xxx.git):
2: %h3
3: .left
4: = form_tag project_commits_path(@project), :method => :get do
5: = select_tag "branch", options_for_select(@repo.heads.map(&:name), @branch), :onchange => "this.form.submit();", :class => "", :prompt => "Branches"
6:
7: .left.prepend-1
8: = form_tag project_commits_path(@project), :method => :get do
app/views/commits/index.html.haml:5:in `block in _app_views_commits_index_html_haml___2064567273580168513_39460820'
app/views/commits/index.html.haml:4:in `_app_views_commits_index_html_haml___2064567273580168513_39460820'
app/controllers/commits_controller.rb:22:in `index'
```

```sh
Started GET "/xxx/tree" for 31.25.73.195 at 2011-10-16 00:52:15 +0000
Processing by ProjectsController#tree as HTML
Parameters: {"id"=>"xxx"}
Rendered public/404.html (0.4ms)
Completed 404 Not Found in 16ms (Views: 3.0ms | ActiveRecord: 1.3ms)
```