Reputation: 13
I need help now!
Environment:Centos 6.7 + reviewboard 2.5.1.1
Now I have installed reviewboard in /var/www/reviewboard,the website user and group is apache:apache,
in the web page,I fill in like this:
Hosting service:custom
Repository Type:Git
Path:/home/jxd/Git/monitor/.git
Mirror Path: [email protected]:company/monitor
current user:jxd
project :monitor
Then I try to save these configuration,but web page says “Permission denied accessing the local Git repository '/home/jxd/Git/monitor/.git'”
and I have tried to execute following command:
chown o+w /home/jxd/Git/monitor/.git
but it doesn't work.
So,please tell me where is wrong ?
Thanks.
Upvotes: 1
Views: 1287
Reputation: 4216
Let me add another answer here. ReviewBoard gives a permission denied error when working with treeless repos. It seems to require a full checkout before it will work.
If you have just the .git directory, make a clone from it and point ReviewBoard there.
Upvotes: 0
Reputation: 17455
Well, just my guesses, which are too long to be a comment but not a complete answer:
apache
for apache
web server, nginx
for nginx
server etc./home/jxd
), no matter what permisssions are set for a subdirectory inside that folder./srv/www
or /var/www
, /var/lib/www
... In any case make sure that the web-server user has appropriate rights for accessing the repo (reading and maybe writing).git init --shared=group
with subsequent chown -R :<designated_group> /path/to/repo.git
)Upvotes: 0