aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-01-19 22:41:55 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2024-01-20 16:44:17 -0800
commit1d97aa4c8425ec34bebe55cc19ee46080f27ef9a (patch)
tree68c814c1ba8122a500124dcfcd760dfadb213e27 /src/gitolite-shell
parenttest: pin ssh-keygen key type for tests (diff)
downloadgitolite-gentoo-1d97aa4c8425ec34bebe55cc19ee46080f27ef9a.tar.gz
gitolite-gentoo-1d97aa4c8425ec34bebe55cc19ee46080f27ef9a.tar.bz2
gitolite-gentoo-1d97aa4c8425ec34bebe55cc19ee46080f27ef9a.zip
feat: GL_METADATA during non-repo commandsgitolite-gentoo-3.6.13
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
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/ ) {