aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/gitolite-shell')
-rwxr-xr-xsrc/gitolite-shell7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gitolite-shell b/src/gitolite-shell
index e8efe3d..71d1a85 100755
--- a/src/gitolite-shell
+++ b/src/gitolite-shell
@@ -106,6 +106,11 @@ sub main {
# set up the user
my $user = $ENV{GL_USER} = shift @ARGV;
+ # set up the key file name (might be absent)
+ my $kfn = $ENV{GL_KFN} = shift @ARGV;
+
+ # Load user data for the non-git commands
+ env_user_options($user, $kfn);
# set up the repo and the attempted access
my ( $verb, $repo ) = parse_soc(); # returns only for git commands
@@ -114,7 +119,7 @@ sub main {
my $aa = ( $verb =~ 'upload' ? 'R' : 'W' );
# set up env vars from options set for this repo
- env_options($repo, $user);
+ env_options($repo, $user, $kfn);
# auto-create?
if ( repo_missing($repo) and access( $repo, $user, '^C', 'any' ) !~ /DENIED/ ) {