From 59004b87a1ad593d5c839d86a3311c7c942866da Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Wed, 10 Feb 2010 09:24:27 +0530 Subject: [PATCH] install: initial create of glrc should not assume PWD is project root make it work regardless of how it is invoked, though we *do* assume ../conf/example.gitolite.rc exists --- src/gl-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl-install b/src/gl-install index dbebe22..01a2317 100755 --- a/src/gl-install +++ b/src/gl-install @@ -31,7 +31,7 @@ require "$bindir/gitolite.pm"; unless ($ENV{GL_RC}) { # doesn't exist. Copy it across, tell user to edit it and come back my $glrc = $ENV{HOME} . "/.gitolite.rc"; - system("cp conf/example.gitolite.rc $glrc"); + system("cp $bindir/../conf/example.gitolite.rc $glrc"); print "created $glrc\n"; print "please edit it, change the paths if you wish to, and RERUN THIS SCRIPT\n"; exit;