my
$tempdir
= Path::Tiny->tempdir;
my
$repo
=
$tempdir
->child(
'git-repo'
);
my
$home
=
$tempdir
->child(
'homedir'
);
local
$ENV
{HOME} =
$home
->absolute->stringify;
local
$ENV
{GIT_AUTHOR_NAME} =
'A. U. Thor'
;
local
$ENV
{GIT_AUTHOR_EMAIL} =
'author@example.org'
;
local
$ENV
{GIT_COMMITTER_NAME} =
'A. U. Thor'
;
local
$ENV
{GIT_COMMITTER_EMAIL} =
'author@example.org'
;
$repo
->mkpath;
my
$file
=
$repo
->child(
'testfile'
);
my
$wrapper
= Git::Wrapper->new(
$repo
);
diag(
"Git Version: "
.
$wrapper
->version );
pass(
"Basic self check passed"
);
done_testing;