2012-03-08 09:00:13 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
print STDERR "TRACE: gup(", join( ")(", @ARGV ), ")\n";
|
|
|
|
|
|
|
|
my $repo = shift;
|
|
|
|
$repo =~ s/\.git$//;
|
|
|
|
my $user = $ENV{G3T_USER} || 'no-such-user';
|
|
|
|
|
|
|
|
$ENV{SSH_ORIGINAL_COMMAND} = "git-upload-pack '$repo'";
|
2012-03-10 14:26:29 +01:00
|
|
|
exec( "$ENV{GL_BINDIR}/../src/gitolite-shell", $user );
|