Redmine repositories from gitolite

Only two steps:

  1. Let www-data have read access of /path-to-gitolite-root/repositories

    1
    2
    3
    4
    5
    6
    7
    cd /path-to-gitolite-root

    # let all repos readable for all users, but not writable except owner
    chmod a+rX,go-w -R repositories

    # keep gitolite-admin remains only readable/writable by owner
    chmod go-rwX -R repositories/gitolite-admin.git
  2. Keep it that way when gitolite add any new things

    /path-to-gitolite-root/.gitolite.rc
    1
    2
    3
    4
    5
    %RC = (
    ...
    #UMASK => 0077,
    UMASK => 0022, # now any new repo will keep rx permissions of groups & others
    ...