allow perl modules as triggers also...
...and move "check_repo_write_enabled" to that mode ("writable")
This commit is contained in:
parent
1cf062fad5
commit
cc8b10483b
5 changed files with 64 additions and 16 deletions
|
@ -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" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue