(minor) make trigger function name consistent with other similar uses
writable() in Writable.pm renamed to "access_1" to be consistent; i.e., reflect the trigger name
This commit is contained in:
parent
2629d7f00a
commit
2cb7d8313e
|
@ -73,7 +73,7 @@ if ( defined($GL_ADMINDIR) ) {
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
# is the server/repo in a writable state (i.e., not down for maintenance etc)
|
# is the server/repo in a writable state (i.e., not down for maintenance etc)
|
||||||
unshift @{ $rc{ACCESS_1} }, 'Writable::writable';
|
unshift @{ $rc{ACCESS_1} }, 'Writable::access_1';
|
||||||
|
|
||||||
# (testing only) override the rc file silently
|
# (testing only) override the rc file silently
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
|
@ -3,7 +3,7 @@ package Gitolite::Triggers::Writable;
|
||||||
use Gitolite::Rc;
|
use Gitolite::Rc;
|
||||||
use Gitolite::Common;
|
use Gitolite::Common;
|
||||||
|
|
||||||
sub writable {
|
sub access_1 {
|
||||||
my ( $repo, $aa, $result ) = @_[ 1, 3, 5 ];
|
my ( $repo, $aa, $result ) = @_[ 1, 3, 5 ];
|
||||||
return if $aa eq 'R' or $result =~ /DENIED/;
|
return if $aa eq 'R' or $result =~ /DENIED/;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue