This configuration requires sudo and the current user to be in the same group
as the gitolite user’s default group.

As the gitolite user, open ~/.gitolite.rc and add UMASK => 0027,. This is
required to be able to read gl-creator and gl-forked-from files in the
repositories. Next, ensure that the key directory, ~/.gitolite/keydir exists
and is writable by the current user. Files in this directory need to be
readable by the gitolite user, to ensure that files are created belong to the
gitolite user’s default group use chmod g+rwxs ~/.gitolite/keydir.

Next, you need to setup sudo so the gitolite user can use it to run Gitolite
triggers. Insert the following line into /etc/sudoers: