1
package Gitolite::Triggers::AutoCreate;
6
# perl trigger set for stuff to do with auto-creating repos
7
# ----------------------------------------------------------------------
9
# to deny auto-create on read access, uncomment 'no-create-on-read' in the
10
# ENABLE list in the rc file
12
die "autocreate denied\n" if $_[3] and $_[3] eq 'R';
16
# to deny auto-create on read *and* write, uncomment 'no-auto-create' in the
17
# ENABLE list in the rc file. This means you can only create wild repos using
18
# the 'create' command, (which needs to be enabled in the ENABLE list).
20
die "autocreate denied\n" if $_[3] and ( $_[3] eq 'R' or $_[3] eq 'W' );