The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl

use strict;
use warnings;

use Test::FailWarnings -allow_deps => 1;
use Test::Requires::Git;
use Test::More;


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 . '.' );