PRE_ and POST_CREATE triggers get an extra argument...

...when invoked by single-repo operations like auto-creating a wild
repo, or running perms or fork.
This commit is contained in:
Sitaram Chamarty 2012-06-14 13:17:34 +05:30
parent 57f82ee044
commit fbd745958e
5 changed files with 13 additions and 9 deletions

View file

@ -107,8 +107,8 @@ sub main {
if ( repo_missing($repo) and access( $repo, $user, '^C', 'any' ) !~ /DENIED/ ) {
require Gitolite::Conf::Store;
Gitolite::Conf::Store->import;
new_wild_repo( $repo, $user );
gl_log( 'create', $repo, $user );
new_wild_repo( $repo, $user, $aa );
gl_log( 'create', $repo, $user, $aa );
}
# a ref of 'any' signifies that this is a pre-git check, where we don't