ericpaulbishop/redmine_git_hosting — Issue #134: Repository created for project but not visible
Author: pcaddict
Created: 2011-12-10 23:38:02+00:00
State: open

After battling ssh key issues I have finally gotten redmine and redmine_git_hosting working together and creating a repository when a project is added. The problem I face now, and maybe I am misunderstanding the extent of what redmine_git_hosting is supposed to do, is that when I go to the repository tab for the project I still get told that the repository is empty and have instructions for setting up the repo. When I look in the repositories dir for gitolite however the repo has been created.

Here is a snippet from where the project is created:
Processing ProjectsController#create (for 192.168.2.96 at 2011-12-10 17:20:53) [POST]
Parameters: {"action"=>"create", "authenticity_token"=>"pnDRvXQXh/habhMCDBO+vV4rpsIrxE0CkycY9Op5WGQ=", "project"=>{"name"=>"temp", "tracker_ids"=>["1", "2", "3", ""], "homepage"=>"", "is_public"=>"1", "description"=>"", "identifier"=>"temp", "enabled_module_names"=>["issue_tracking", "time_tracking", "news", "documents", "files", "wiki", "repository", "boards", "calendar", "gantt", ""]}, "controller"=>"projects", "continue"=>"Create and continue"}
Redirected to http://192.168.2.101:3000/projects/new?
Cloning gitolite-admin repository
"post-receive" not handled by gitolite, installing it...
Installing "post-receive.redmine_gitolite.rb" from /home/patrick/redmine-1.3/vendor/plugins/redmine_git_hosting/contrib/hooks/post-receive.redmine_gitolite.rb to ~/.gitolite/hooks/common/post-receive
"post-receive.redmine_gitolite installed
Running "gl-setup" on the gitolite install...
Finished installing hooks in the gitolite install...
Creating MD5 digests for Redmine Git Hosting hook
Digest for post-receive.redmine_gitolite.rb: 08e9b3cf99fa6285331ccdcef8b9a0d3
Our hook is already installed
Setting up hooks for project temp
Completed in 1298ms (DB: 18) | 302 Found [http://192.168.2.101/projects]

Here is what the log has to say when I go to the repository:
Parameters: {"action"=>"show", "id"=>"temp", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
Completed in 36ms (View: 17, DB: 4) | 200 OK [http://192.168.2.101/projects/temp]
fatal: Not a valid object name HEAD:

If anyone has any ideas I'd appreciate it.