没有使用 umask 022 创建裸远程存储库上的 "refs/heads/branchname" 是有原因的吗?

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

我注意到,当我将一个分支推送到原始存储库时,refs/heads/branchname 是使用 600 权限创建的。这可以防止本地 redmine 客户端在更新存储库视图时看到该分支。

在存储库目录上 运行 chmod -R 755 之后,分支对 redmine 客户端可见。

git 或 OS 配置中是否有某些设置可能导致这种情况?

原来是gitolite导致的问题。 .gitolite.rc 中的默认 umask 是 077 并且需要更改以允许允许 Unix other 用户读取目录和文件的值。