aboutsummaryrefslogtreecommitdiff
blob: 48c74289ecc37f759a300feb6a4f2de3b18bb673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

use strict;
use warnings;
print STDERR "TRACE: grp(", join( ")(", @ARGV ), ")\n";

my $repo = shift;
$repo =~ s/\.git$//;
my $user = $ENV{G3T_USER} || 'no-such-user';

$ENV{SSH_ORIGINAL_COMMAND} = "git-receive-pack '$repo'";
exec( "$ENV{HOME}/bin/gitolite-shell", $user );