Reputation: 63
I tried to clone a gitosis repository and got the error:
ERROR:gitosis.app:Unable to read config file: [Errno 13] Permission denied: '/sr v/gitosis/.gitosis.conf' fatal: The remote end hung up unexpectedly
The permission of gitosis.conf is set to 755. I also checked the folders and make sure that owner is gitosis. I cannot see anything wrong with permission. What could be the reason for this error?
Upvotes: 1
Views: 687
Reputation: 1
"su - git" to git user and
cat the gitosis.conf file.
if you cannot see the content of the file.
then you need to fix the ownership and permmisson of file or
the path nodes along the path of the file.
Bill Z
Upvotes: 0
Reputation: 63
Thanks. Yes, the repositories directory is not owned by gitosis. Cloned successfully after updating it.
Upvotes: 1