(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:
Sitaram Chamarty 2012-04-16 17:38:57 +05:30
parent 2629d7f00a
commit 2cb7d8313e
2 changed files with 2 additions and 2 deletions

View file

@ -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
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------

View file

@ -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/;