use File::Codeowners;
use Test::Builder;
-our $VERSION = '0.41'; # VERSION
+our $VERSION = '0.44'; # VERSION
my $Test = Test::Builder->new;
return;
}
- my $files = git_ls_files(git_toplevel());
+ my ($proc, @files) = git_ls_files(git_toplevel());
- $Test->plan(@$files ? (tests => scalar @$files) : (skip_all => 'git ls-files failed'));
+ $Test->plan($proc->wait == 0 ? (tests => scalar @files) : (skip_all => 'git ls-files failed'));
- for my $filepath (@$files) {
+ for my $filepath (@files) {
my $msg = encode('UTF-8', "Check file: $filepath");
my $match = $codeowners->match($filepath);
=head1 VERSION
-version 0.41
+version 0.44
=head1 SYNOPSIS