The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!perl
use strict;
use Test::FailWarnings -allow_deps => 1;
test_requires_git();
plan( tests => 2 );
use_ok('Git::Repository');
ok(
defined(
my $git_version = Git::Repository->version()
),
'Retrieve the git version.',
);
$git_version //= '(undef)';
diag( 'Using git version ' . $git_version . '.' );