Change Gitolite settings to make repos visible to Gitweb
By default repositories created by gitolite have a umask 0007. This results in repos only readable by the gitolite user. Ideally you don't have Apache/nginx running as the gitolite user, so how do you adjust the permissions?
Easy!
Edit your .gitolite.rc file. Change the UMASK from 0007 to 0027.
From this:
%RC = (
# ------------------------------------------------------------------
# default umask gives you perms of '0700'; see the rc file docs for
# how/why you might change this
UMASK => 0007,
To this:
%RC = (
# ------------------------------------------------------------------
# default umask gives you perms of '0700'; see the rc file docs for
# how/why you might change this
UMASK => 0027,
You'll need to add your webserver user to the gitolite user group, and manually change any repositories created before the change.
Written by Brad Erickson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#