Question

I have a problem with filepermissions working with Gitolite and GitWeb. When I push to a repository, the repository disappears from GitWeb. (I can make it visable again by running : chmod -R +rx ./repositories/my-first-git-repo.git/)

I followed an installation guide to install Gitolite and GitWeb (http://sharadchhetri.com/2013/05/31/how-to-create-own-git-server-with-gitolite-and-gitweb-in-ubuntu/).

Later, when I discovered the problem I added www-data to group git, that was not in the guide. But even after that it does not work...

When I read about it I can't really understand the UMASK syntax, default is 0077 (which should give : rwx------, but to me it looks like rwxrwx---). Every where I read people say that I shuold change to 0027 (for giving access to GitWeb, which I had already from the start just like the guide sad), but to me that seems to lower the group permission from 7 to 2 I (from rwx to r), if this is done for folders they are not readable, is this the problem? It does not make sense to me.

I have now : UMASK => 0027 (in .gitolite.rc)

gitolite.conf : (one of the repo's)

repo my-first-git-repo

config gitweb.description   = First Git repository
        RW          = John
        R           = gitweb

Groups :

git@SilverStone:~$ groups git

git : git

git@SilverStone:~$ groups www-data

www-data : www-data git

Can anyone help me, please?

Was it helpful?

Solution

I have now solved the issue, thank's to VonC who informed me about the recent updates to Gitolite. I installed from the latest source on master-branch (Sep 02, 2013) and that solved my issue. Earlier I had installed from the release version 3.5.2.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top