cpu-time command -> CpuTime trigger module...
...now that triggers are not restricted to external programs and can be perl code called by gitolite-shell (thus in the same PID), there's no need to compute and pass along the times() array. This also changes the arguments to POST_GIT; they're now the same as PRE_GIT's.
This commit is contained in:
parent
de40461d9a
commit
e1c7e546aa
8 changed files with 65 additions and 57 deletions
|
@ -106,7 +106,7 @@ sub main {
|
|||
trigger( 'PRE_GIT', $repo, $user, $aa, 'any', $verb );
|
||||
my $repodir = "'$rc{GL_REPO_BASE}/$repo.git'";
|
||||
_system( "git", "shell", "-c", "$verb $repodir" );
|
||||
trigger( 'POST_GIT', $repo, $user, $aa, 'any', $verb, times() );
|
||||
trigger( 'POST_GIT', $repo, $user, $aa, 'any', $verb );
|
||||
}
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue