Git Repo: The entry or revision was not found in the repository
Added by Matt Connolly over 14 years ago
Site info below.
I set up a project and added a git repository. All good. I was browsing a file, and switched the view to a branch that did not have that file present, the window shows this message:
The entry or revision was not found in the repository
But there is no navigation controls to go to another file or branch, and now that's the only thing I can see in the repository viewer.
How can I get my repository viewer back?
Thanks,
Matt
MattBookPro:redmine matt$ RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (universal-darwin10.0)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /Library/WebServer/Sites/redmine.git
Environment production
Database adapter mysql
Database schema version 20100819172912
Replies (2)
RE: Git Repo: The entry or revision was not found in the repository - Added by Matt Connolly over 14 years ago
Just noticed this in my apache log:
sh: git: command not found
Seems redmine is hardwired to look for git in /usr/bin/git. (I'm sure I had this working the other day... whatever).
Adding a symlink solves the problem.
Any chance we can have a more descriptive error than "The entry or revision was not found in the repository" displayed in the browser window?
RE: Git Repo: The entry or revision was not found in the repository - Added by Felix Schäfer over 14 years ago
Matt Connolly wrote:
Just noticed this in my apache log:
sh: git: command not found
Seems redmine is hardwired to look for git in /usr/bin/git. (I'm sure I had this working the other day... whatever).
No, see source:/trunk/lib/redmine/scm/adapters/git_adapter.rb#L25 . Make sure git
is in the $PATH
your rails server gets.
Adding a symlink solves the problem.
Any chance we can have a more descriptive error than "The entry or revision was not found in the repository" displayed in the browser window?
Feel free to submit a patch :-)