From: Mario Hros <
g...@reversity.org>
After moving users's HOME directory to a new location,
hook symlinks end up pointing to a wrong path but the gitolite
simply behaves as if nobody had access to any repo
and reports error "DENIED by fallthru" which is pretty misleading.
This patch changes the error into "DENIED by invalid setup"
and also logs a possible action to fix the problem.
---
src/lib/Gitolite/Conf/Load.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lib/Gitolite/Conf/Load.pm b/src/lib/Gitolite/Conf/Load.pm
index 150a89c..bce6c88 100644
--- a/src/lib/Gitolite/Conf/Load.pm
+++ b/src/lib/Gitolite/Conf/Load.pm
@@ -73,7 +73,10 @@ sub access {
trace( 2, $repo, $user, $aa, $ref );
_die "invalid user '$user'" if not( $user and $user =~ $USERNAME_PATT );
sanity($repo);
- return "$aa any $repo $user DENIED by fallthru" unless update_hook_present($repo);
+ if ( not update_hook_present($repo) ) {
+ trace( 1, "repo $repo does not have a valid update hook, run 'gitolite setup -ho' if you have moved the user's home directory" );
+ return "$aa any $repo $user DENIED by invalid setup";
+ }
my @rules;
my $deny_rules;
--
2.39.3 (Apple Git-146)