Project

General

Profile

Empty Git repository, but the database has the data

Added by Matt M almost 13 years ago

I recently switch all of my SVN repos over to Git and I am also running Redmine 1.2.0. The Git repos I am trying to access are on the local machine and I have added the path to the repository for each project. Now after adding the repo and running "ruby script/runner "Repository.fetch_changesets" -e production" I am able to map the users and hit save. Whenever I visit the Repositories page, I receive this error:

The entry or revision was not found in the repository.

I have checked the database and I can see that all of the commit messages are coming in properly. If I remove the repo, I see that it removes all of the data for that repo in the database. I have added and removed this a handful of times and although the data is always in the database, that error is always displayed.

Additionally, the Repositories page would kick back a 500 error with the following from the log:

Processing RepositoriesController#show (for 76.112.202.0 at 2011-06-27 16:51:07) [GET]
  Parameters: {"action"=>"show", "id"=>"project-name", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering common/error (404)

ActionView::TemplateError (undefined method `each' for nil:NilClass) on line #78 of app/views/layouts/base.rhtml:
75:   </div></div>
76: </div>
77: </div>
78: <%= call_hook :view_layouts_base_body_bottom %>
79: </div>
80: </body>
81: </html>

After removing line 78, the page will load but I will just receive the 1st error (above). I have reinstalled Redmine twice, maintaining the same database, and it made no difference. Redmine does see the Git command in the settings menu.