Git repository: "The entry or revision was not found in the repository."

Added by Yang Zhang over 7 years ago

I added the bare repository file:///var/git/web.git/ to a project, but clicking on Repository gives me:

"The entry or revision was not found in the repository."

I then tried deleting that and adding a file:///home/.../web/ (a non-bare clone repository), but that gave me the same thing. Using redmine 0.9.3 on Ubuntu 10.04. Any hints? Thanks in advance.

Replies (7)

RE: Git repository: "The entry or revision was not found in the repository." - Added by Felix Schäfer over 7 years ago

file:// and bare are the way to go, nothing wrong with that. Does the log yield any errors? Anyway, most of the time this happens because either redmine can't find the git binary in it's PATH, or it doesn't have read permission on the repository. As I rather suspect the first problem to be the case, see if you can tackle that one, we'll see about the second if needed.

RE: Git repository: "The entry or revision was not found in the repository." - Added by Toshi MARUYAMA over 7 years ago

Felix Schäfer wrote:

file:// and bare are the way to go, nothing wrong with that.

Sorry, I confused Mercurial #3917.

RE: Git repository: "The entry or revision was not found in the repository." - Added by Yang Zhang over 7 years ago

Changing the file:/// to a / worked for me, FWIW.

RE: Git repository: "The entry or revision was not found in the repository." - Added by Felix Schäfer over 7 years ago

Ough, this happens when I'm allowed near a keyboard too early in the morning. Paths for git don't take a prepended file://, Toshi was right. Sorry to you both.

RE: Git repository: "The entry or revision was not found in the repository." - Added by Matt Connolly about 6 years ago

Same happened to me this morning. Duh... remove the "file://" and it works with a native path.

Repository permissions could be wrong - Added by Colan Schwartz about 4 years ago

This can be caused by the Web server not being able to read the repository. Check your permissions on the Git directory. On Ubuntu for example, the user "www-data" needs read access (if using Apache).

(1-7/7)