Defect #3906

Cannot browse Git repositories in r2898

Added by Rahul Vaidya about 12 years ago. Updated over 10 years ago.

Status:ClosedStart date:2009-09-23
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


Works fine in the 0.8.5 release. When clicking the Repository link, I get this:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.

Related issues

Related to Redmine - Feature #7517: Configurable path of executable for scm adapters Closed 2011-02-02


#1 Updated by Rahul Vaidya about 12 years ago

Running Redmine on Windows with msysgit binaries in path, if that matters.

#2 Updated by Eric Davis about 12 years ago

Can you post the error from your log file (log/production.log) as well as the full output from script/about?

#3 Updated by Rahul Vaidya about 12 years ago

I cannot run script/about, it asks for libmysql.dll, and I do not have MySQL installed...

Error from error log:
Processing RepositoriesController#show (for at 2009-09-22 17:34:12) [GET]
Parameters: {"action"=>"show", "id"=>"myproject", "controller"=>"repositories"}

NoMethodError (private method `chomp' called for nil:NilClass):
lib/redmine/scm/adapters/git_adapter.rb:115:in `num_revisions'
lib/redmine/scm/adapters/abstract_adapter.rb:193:in `call'
lib/redmine/scm/adapters/abstract_adapter.rb:193:in `shellout'
lib/redmine/scm/adapters/abstract_adapter.rb:191:in `popen'
lib/redmine/scm/adapters/abstract_adapter.rb:191:in `shellout'
lib/redmine/scm/adapters/abstract_adapter.rb:177:in `shellout'
lib/redmine/scm/adapters/git_adapter.rb:115:in `num_revisions'
app/models/repository/git.rb:47:in `fetch_changesets'
app/controllers/repositories_controller.rb:68:in `show'

Rendering C:/Ruby/redmine-trunk/redmine/public/500.html (500 Internal Server Error)

#4 Updated by Babar O'Cap about 12 years ago

Have you added this :

to your %PATH% environment variable ?
Where %GIT_PATH% is the install directory of Git (eg: C:\Git)

#5 Updated by Rahul Vaidya about 12 years ago

I have 0.8.5 stable and trunk installed as two services on the same machine. 0.8.5 works with git repo browsing. The git binary path is in the system-wide PATH variable.

#6 Updated by Rahul Vaidya about 12 years ago

  • Status changed from New to Resolved

Sorry, the /cmd path was in PATH but not /bin. Seems to work now.

#7 Updated by Toshi MARUYAMA over 10 years ago

  • Status changed from Resolved to Closed

Svn trunk r4795 adds a feature of configurable path of executable for scm adapters (#7517).

Also available in: Atom PDF