X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fgit-codeowners;a=blobdiff_plain;f=lib%2FApp%2FCodeowners.pm;h=8a83a68496a7c7281ad28672426970551d6df139;hp=1dc97cc49dba3ead168ab5e4bd23e2865c0d0424;hb=d7841cb4430c9f7b3529b156fe1c2d599071cfa5;hpb=c76921e636493d2af705117fd58c642e90584d77 diff --git a/lib/App/Codeowners.pm b/lib/App/Codeowners.pm index 1dc97cc..8a83a68 100644 --- a/lib/App/Codeowners.pm +++ b/lib/App/Codeowners.pm @@ -201,11 +201,10 @@ END if ($repopath) { # if there is a repo we can try to update the list of unowned files - my $git_files = git_ls_files($repopath); - if (@$git_files) { - $codeowners->clear_unowned; - $codeowners->add_unowned(grep { !$codeowners->match($_) } @$git_files); - } + my ($proc, @filepaths) = git_ls_files($repopath); + $proc->wait and exit 1; + $codeowners->clear_unowned; + $codeowners->add_unowned(grep { !$codeowners->match($_) } @filepaths); } $codeowners->write_to_filepath($path);