128 lines
4.2 KiB
Plaintext
128 lines
4.2 KiB
Plaintext
|
# configuration variables for gitolite
|
||
|
|
||
|
# This file is in perl syntax. But you do NOT need to know perl to edit it --
|
||
|
# just mind the commas, use single quotes unless you know what you're doing,
|
||
|
# and make sure the brackets and braces stay matched up!
|
||
|
|
||
|
# (Tip: perl allows a comma after the last item in a list also!)
|
||
|
|
||
|
%RC = (
|
||
|
HOSTNAME => '%HOSTNAME',
|
||
|
UMASK => 0077,
|
||
|
GIT_CONFIG_KEYS => '',
|
||
|
|
||
|
# comment out if you don't need all the extra detail in the logfile
|
||
|
LOG_EXTRA => 1,
|
||
|
|
||
|
# settings used by external programs; uncomment and change as needed. You
|
||
|
# can add your own variables for use in your own external programs; take a
|
||
|
# look at the cpu-time and desc commands for perl and shell samples.
|
||
|
|
||
|
# used by the cpu-time command
|
||
|
# DISPLAY_CPU_TIME => 1,
|
||
|
# CPU_TIME_WARN_LIMIT => 0.1,
|
||
|
# used by the desc command
|
||
|
# WRITER_CAN_UPDATE_DESC => 1,
|
||
|
# used by the info command
|
||
|
# SITE_INFO => 'Please see http://blahblah/gitolite for more help',
|
||
|
|
||
|
# add more roles (like MANAGER, TESTER, ...) here.
|
||
|
# WARNING: if you make changes to this hash, you MUST run 'gitolite
|
||
|
# compile' afterward, and possibly also 'gitolite trigger POST_COMPILE'
|
||
|
ROLES =>
|
||
|
{
|
||
|
READERS => 1,
|
||
|
WRITERS => 1,
|
||
|
},
|
||
|
# uncomment (and change) this if you wish
|
||
|
# DEFAULT_ROLE_PERMS => 'READERS @all',
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these are available to remote users
|
||
|
COMMANDS =>
|
||
|
{
|
||
|
'help' => 1,
|
||
|
'info' => 1,
|
||
|
'desc' => 1,
|
||
|
'perms' => 1,
|
||
|
'mirror' => 1,
|
||
|
'writable' => 1,
|
||
|
},
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence during the conf file parse
|
||
|
SYNTACTIC_SUGAR =>
|
||
|
[
|
||
|
# 'continuation-lines',
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence to modify the input (arguments and environment)
|
||
|
INPUT =>
|
||
|
[
|
||
|
'Mirroring::input',
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence just after the first access check is done
|
||
|
ACCESS_1 =>
|
||
|
[
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence at the start, before a git operation has started
|
||
|
PRE_GIT =>
|
||
|
[
|
||
|
# if you use this, make this the first item in the list
|
||
|
# 'renice 10',
|
||
|
|
||
|
'Mirroring::pre_git',
|
||
|
|
||
|
# see docs ("list of non-core programs shipped") for details
|
||
|
# 'partial-copy',
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence just after the second access check is done
|
||
|
ACCESS_2 =>
|
||
|
[
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence at the end, after a git operation has ended
|
||
|
POST_GIT =>
|
||
|
[
|
||
|
# if you use this, make this the last item in the list
|
||
|
# 'cpu-time',
|
||
|
'Mirroring::post_git',
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence after a new wild repo is created
|
||
|
POST_CREATE =>
|
||
|
[
|
||
|
'post-compile/update-git-configs',
|
||
|
'post-compile/update-gitweb-access-list',
|
||
|
'post-compile/update-git-daemon-access-list',
|
||
|
],
|
||
|
|
||
|
# comment out or uncomment as needed
|
||
|
# these will run in sequence after post-update
|
||
|
POST_COMPILE =>
|
||
|
[
|
||
|
'post-compile/ssh-authkeys',
|
||
|
'post-compile/update-git-configs',
|
||
|
'post-compile/update-gitweb-access-list',
|
||
|
'post-compile/update-git-daemon-access-list',
|
||
|
],
|
||
|
);
|
||
|
|
||
|
# ------------------------------------------------------------------------------
|
||
|
# per perl rules, this should be the last line in such a file:
|
||
|
1;
|
||
|
|
||
|
# Local variables:
|
||
|
# mode: perl
|
||
|
# End:
|
||
|
# vim: set syn=perl:
|