Defect #3906
closed
Cannot browse Git repositories in r2898
Added by Rahul Vaidya about 15 years ago.
Updated almost 14 years ago.
Description
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.
Running Redmine on Windows with msysgit binaries in path, if that matters.
Can you post the error from your log file (log/production.log) as well as the full output from script/about
?
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 192.168.1.125 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)
Have you added this :
;%GIT_PATH%\cmd;%GIT_PATH%\bin;
to your %
PATH% environment variable ?
Where %
GIT_PATH% is the install directory of Git (eg:
C:\Git)
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.
- Status changed from New to Resolved
Sorry, the /cmd path was in PATH but not /bin. Seems to work now.
- 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