From 2cb7d8313e5bb9411f87e46c1d129077b9e26b5e Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Mon, 16 Apr 2012 17:38:57 +0530 Subject: [PATCH] (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 --- src/lib/Gitolite/Rc.pm | 2 +- src/lib/Gitolite/Triggers/Writable.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/;