supporting DOS and fake Unix...
I was very, very, tempted to say "sorry; not supported". Sadly, prudence won over juvenile glee... PS: DOS == dominant operating system
This commit is contained in:
parent
6e5c9954fd
commit
d3610191d3
68 changed files with 59 additions and 57 deletions
|
@ -7,7 +7,7 @@ my $MKD = "./Markdown.pl";
|
|||
use 5.10.0;
|
||||
use strict;
|
||||
use warnings;
|
||||
use lib '../src/Gitolite/Test';
|
||||
use lib '../src/lib/Gitolite/Test';
|
||||
use Tsh;
|
||||
|
||||
$ENV{TSH_ERREXIT} = 1;
|
||||
|
|
3
install
3
install
|
@ -10,7 +10,8 @@ use FindBin;
|
|||
|
||||
# meant to be run from the root of the gitolite tree, one level above 'src'
|
||||
BEGIN { $ENV{GL_BINDIR} = $FindBin::RealBin . "/src"; }
|
||||
use lib $ENV{GL_BINDIR};
|
||||
BEGIN { $ENV{GL_LIBDIR} = "$ENV{GL_BINDIR}/lib"; }
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Common;
|
||||
|
||||
=for usage
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
use Getopt::Long;
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ use warnings;
|
|||
|
||||
use Getopt::Long;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -8,7 +8,7 @@ BEGIN {
|
|||
delete $ENV{GL_TID};
|
||||
}
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
|
||||
print glrc('default-text');
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Easy;
|
||||
|
||||
=for usage
|
||||
|
|
|
@ -36,7 +36,8 @@ written.
|
|||
use FindBin;
|
||||
|
||||
BEGIN { $ENV{GL_BINDIR} = $FindBin::RealBin; }
|
||||
use lib $ENV{GL_BINDIR};
|
||||
BEGIN { $ENV{GL_LIBDIR} = "$ENV{GL_BINDIR}/lib"; }
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
use FindBin;
|
||||
|
||||
BEGIN { $ENV{GL_BINDIR} = $FindBin::RealBin; }
|
||||
use lib $ENV{GL_BINDIR};
|
||||
BEGIN { $ENV{GL_LIBDIR} = "$ENV{GL_BINDIR}/lib"; }
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -55,10 +55,7 @@ __DATA__
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
BEGIN {
|
||||
die "GL_BINDIR not set; aborting\n" unless $ENV{GL_BINDIR};
|
||||
}
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Hooks::PostUpdate;
|
||||
|
||||
# gitolite post-update hook (only for the admin repo)
|
|
@ -152,7 +152,7 @@ __DATA__
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Hooks::Update;
|
||||
|
||||
# gitolite update hook
|
|
@ -29,12 +29,14 @@ our %rc;
|
|||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
# variables that could be overridden by the rc file
|
||||
# pre-populate some important rc keys
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
$rc{GL_BINDIR} = $ENV{GL_BINDIR};
|
||||
$rc{GL_REPO_BASE} = "$ENV{HOME}/repositories";
|
||||
$rc{GL_LIBDIR} = $ENV{GL_LIBDIR};
|
||||
|
||||
# these keys could be overridden by the rc file later
|
||||
$rc{GL_REPO_BASE} = "$ENV{HOME}/repositories";
|
||||
$rc{GL_ADMIN_BASE} = "$ENV{HOME}/.gitolite";
|
||||
$rc{LOG_TEMPLATE} = "$ENV{HOME}/.gitolite/logs/gitolite-%y-%m.log";
|
||||
|
|
@ -4,7 +4,7 @@ use warnings;
|
|||
|
||||
use File::Temp qw(tempfile);
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
use FindBin;
|
||||
|
||||
use lib $ENV{GL_BINDIR};
|
||||
use lib $ENV{GL_LIBDIR};
|
||||
use Gitolite::Rc;
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Conf::Load;
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# initial smoke tests
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# test 'gitolite access'
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# could anything be clearer than "all y'all"?
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# some more basic tests
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# branch permissions test
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# basic tests
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# delegation tests -- part 1
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# delegation tests -- part 2
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# deny-create, the RW.*C flag
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# more on deny-rules
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# deny rules
|
||||
|
|
2
t/easy.t
2
t/easy.t
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Easy;
|
||||
use Gitolite::Test;
|
||||
# put this after ::Easy because it chdirs away from where you were and the
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# git config settings
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# %HOSTNAME tests
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# include and subconf
|
||||
|
|
2
t/info.t
2
t/info.t
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# the info command
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# invalid refnames
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# the various list-* commands
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# merge check -- the M flag
|
||||
|
|
|
@ -10,7 +10,7 @@ use warnings;
|
|||
$ENV{TSH_ERREXIT} = 1;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
use Cwd;
|
||||
my $workdir = getcwd();
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# test script for partial copy feature
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# permissions using role names
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# assigning roles to groups instead of users
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# personal branches
|
||||
|
|
2
t/reset
2
t/reset
|
@ -7,7 +7,7 @@ BEGIN {
|
|||
}
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
use Cwd;
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# rule sequence
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# uhh, seems to be another rule sequence test
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# testing the (separate) authkeys handler
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Common;
|
||||
use Gitolite::Test;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# VREFs - part 1
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# VREFs - part 2
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# wild repos - part 1
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
# wild repos - part 2
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
use Cwd;
|
||||
my $workdir = getcwd();
|
||||
|
|
|
@ -3,7 +3,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
# this is hardcoded; change it if needed
|
||||
use lib "src";
|
||||
use lib "src/lib";
|
||||
use Gitolite::Test;
|
||||
|
||||
try "plan 1; cd $ENV{PWD}; git status -s -uno; !/./ or die" or die "dirty tree";
|
||||
|
|
Loading…
Reference in a new issue