(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

@ -43,7 +43,8 @@ our %repo_config;
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";
# ask where the rc file is, get it, and "do" it
&where_is_rc();