(doh!) make gitolite.pm easier for packagers

should have done this long ago...
This commit is contained in:
Sitaram Chamarty 2010-10-23 16:43:47 +05:30
parent cb0a9bdb0c
commit 66b65e5e1d
8 changed files with 17 additions and 8 deletions

View file

@ -30,7 +30,8 @@ our ($GL_PERFLOGT);
my $bindir = $0;
$bindir =~ s/\/[^\/]+$//;
$bindir = "$ENV{PWD}/$bindir" unless $bindir =~ /^\//;
require "$bindir/gitolite.pm";
unshift @INC, $bindir;
require gitolite or die "parse gitolite.pm failed\n";
# prevent newbie from running it accidentally and clobbering his authkeys
# file!