gitolite/t/gitolite-upload-pack
Sitaram Chamarty 379b0c9549 install/test made easy (WARNING: read below)
(1) testing is very easy, just run this from a clone

        t/g3-clean-install-setup-test

    BUT BE WARNED THIS IS DESTRUCTIVE; details in t/WARNING

(2) install is equally simple; see 'INSTALL' in the main directory
2012-03-24 10:30:41 +05:30

13 lines
297 B
Perl
Executable file

#!/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'";
exec( "$ENV{GL_BINDIR}/../src/gitolite-shell", $user );