allow perl modules as triggers also...

...and move "check_repo_write_enabled" to that mode ("writable")
This commit is contained in:
gitolite tester 2012-03-25 21:29:14 +05:30 committed by Sitaram Chamarty
parent 1cf062fad5
commit cc8b10483b
5 changed files with 64 additions and 16 deletions

View file

@ -94,7 +94,6 @@ sub main {
trigger( 'ACCESS_1', $repo, $user, $aa, 'any', $ret );
_die $ret . "\n(or you mis-spelled the reponame)" if $ret =~ /DENIED/;
check_repo_write_enabled($repo) if $aa eq 'W';
trigger( 'PRE_GIT', $repo, $user, $aa, 'any', $verb );
my $repodir = "'$rc{GL_REPO_BASE}/$repo.git'";
_system( "git", "shell", "-c", "$verb $repodir" );