Search code examples
gitrepositoryfile-permissions

Is there a reason why "refs/heads/branchname" on the bare remote repository is not created with umask 022?


I have noticed that when I push a branch to the origin repo refs/heads/branchname is created with permissions 600. This prevents a local redmine client from seeing that branch when it updates the repository view.

After I run chmod -R 755 on the repository's directory the branch becomes visible to the redmine client.

Is there some setting in git or the OS configuration that could be causing that?


Solution

  • It turns out the issue was caused by gitolite. The default umask in .gitolite.rc is 077 and needs to be changed to allow the a value which allows the Unix other users to read the directories and files.