Linux – push commits to git (gitolite) repository messes up file permissions (no more trac access)

debianfile-permissionsgitlinuxtrac

already posted here so feel free to answer there.

everytime i commit/push something to the git server the file permissions change (all added/edited files in the repository have no read and execute access for the group). thus trac can't access the repository.

do I need to change permissions of the folder differently?

chmod u=rwx,g=rx,o= -R /home/git/repositories

or do i need to setup gitolite somehow to write files with different permissions???

regards,
klemens

Best Answer

setting the umask/default umask has no effect because gitolite has it's own setting.

at ~/.gitolite.rc

$REPO_UMASK = 0027;

set it as you like :)