diff --git a/src/lib/Gitolite/Rc.pm b/src/lib/Gitolite/Rc.pm index 0ec997b..f6dfcce 100644 --- a/src/lib/Gitolite/Rc.pm +++ b/src/lib/Gitolite/Rc.pm @@ -73,7 +73,7 @@ if ( defined($GL_ADMINDIR) ) { # ---------------------------------------------------------------------- # 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 # ---------------------------------------------------------------------- diff --git a/src/lib/Gitolite/Triggers/Writable.pm b/src/lib/Gitolite/Triggers/Writable.pm index 837145c..ed86e12 100644 --- a/src/lib/Gitolite/Triggers/Writable.pm +++ b/src/lib/Gitolite/Triggers/Writable.pm @@ -3,7 +3,7 @@ package Gitolite::Triggers::Writable; use Gitolite::Rc; use Gitolite::Common; -sub writable { +sub access_1 { my ( $repo, $aa, $result ) = @_[ 1, 3, 5 ]; return if $aa eq 'R' or $result =~ /DENIED/;