aboutsummaryrefslogtreecommitdiff
path: root/t/glt
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2012-03-10 18:56:29 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2012-03-24 10:30:41 +0530
commit379b0c9549faa2699d49da22fe49d3048e12f0a1 (patch)
tree5d270fc8b06a15103f97b3906cb6c0288e2b2916 /t/glt
parentsugar high! (diff)
downloadgitolite-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-xt/glt7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/glt b/t/glt
index b5704f5..45e7b19 100755
--- a/t/glt
+++ b/t/glt
@@ -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 ) {