Redmine git integration issue

Added by Kevin Vasko over 9 years ago

I am having the "The entry or revision was not found in the repository." problem when I try to point redmine to a git repository.

What I have done...I have tried following this...http://www.redmine.org/wiki/1/RedmineRepositories and tried a few things in my own.

Just to test it, I inited a bare repository in the redmine directory with the same permissions as the redmine user. Added a few files to it and made a few modifications to the files just for testing purposes. I set the SCM to git and added the absolute path to that inited git repository e.g. (/usr/local/www/redmine/test.git) (the test.git folder as all the typical folders and files that a git directory would have HEAD, config, info, refs, branches etc.).

typing "git" at the command prompt on the server hosting redmine does produce the git options.

I would like to know where I could go to troubleshoot this. The only log file I could find was in the redmine/log folder. In the folder was a single file "production.log" and it has 1 line it it stating when the file was created. Is there a flag or some setting to get more logging?

I am using Git 1.7.0.3 and Redmin 0.9.3.

Replies (2)

RE: Redmine git integration issue - Added by Kevin Vasko over 9 years ago

I started digging around in some of my other logs and found this in my httpd-error.log.

"git: not found"

Right now I am kinda thinking it possibly is a ruby PATH issue. Any thoughts?

RE: Redmine git integration issue - Added by Kevin Vasko over 9 years ago

Well I think I have figured it out.

Hopefully anyone else that has this issue will find this...

I read over the git section about 10 times...

http://www.redmine.org/wiki/1/RedmineRepositories

and couldn't get it to work...

I accidentally read over the "Bazaar repository" section and found this...

ENV['PATH'] = "#{ENV['PATH']}:/path/to/bzr/bin"

I changed it to my git path...

ENV['PATH'] = "#{ENV['PATH']}:/usr/local/bin"

saved it restarted apache and it seems to be working now.

I assume you could add the /usr/local/bin PATH to ruby but I'm no real sure how, just hope I don't end up forgetting this and deleting this file if I do an upgrade :D.

(1-2/2)