diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-03-10 18:56:29 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-03-24 10:30:41 +0530 |
commit | 379b0c9549faa2699d49da22fe49d3048e12f0a1 (patch) | |
tree | 5d270fc8b06a15103f97b3906cb6c0288e2b2916 /t/glt | |
parent | sugar high! (diff) | |
download | gitolite-gentoo-379b0c9549faa2699d49da22fe49d3048e12f0a1.tar.gz gitolite-gentoo-379b0c9549faa2699d49da22fe49d3048e12f0a1.tar.bz2 gitolite-gentoo-379b0c9549faa2699d49da22fe49d3048e12f0a1.zip |
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
Diffstat (limited to 't/glt')
-rwxr-xr-x | t/glt | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,9 @@ use strict; use warnings; +use FindBin; +BEGIN { $ENV{GL_BINDIR} = $FindBin::RealBin; } + print STDERR "TRACE: glt(", join( ")(", @ARGV ), ")\n"; my $cmd = shift or die "need command"; @@ -10,9 +13,9 @@ my $rc; $ENV{G3T_USER} = $user; if ( $cmd eq 'push' ) { - $rc = system( "git", $cmd, "--receive-pack=$ENV{HOME}/bin/gitolite-receive-pack", @ARGV ); + $rc = system( "git", $cmd, "--receive-pack=$ENV{GL_BINDIR}/gitolite-receive-pack", @ARGV ); } else { - $rc = system( "git", $cmd, "--upload-pack=$ENV{HOME}/bin/gitolite-upload-pack", @ARGV ); + $rc = system( "git", $cmd, "--upload-pack=$ENV{GL_BINDIR}/gitolite-upload-pack", @ARGV ); } if ( $? == -1 ) { |