0

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?

vfclists
  • 19,193
  • 21
  • 73
  • 92
  • Possible duplicate of [How to use git for multiple developers](https://stackoverflow.com/questions/1492398/how-to-use-git-for-multiple-developers) – phd Jun 24 '19 at 16:21
  • 1
    See https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresharedRepository. – phd Jun 24 '19 at 16:21
  • 1
    Set `git config core.sharedRepository 0644` – phd Jun 24 '19 at 16:22
  • You can override the system-provided umask with `core.sharedRepository`. The system-provided umask is probably 077 on your server system (you did not mention which OS this is). – torek Jun 24 '19 at 18:51

1 Answers1

0

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.

vfclists
  • 19,193
  • 21
  • 73
  • 92