Skip any .git directory for copyright changes, not just top-level .git

directories.  Per suggestion from Andrew Dunstan.
This commit is contained in:
Bruce Momjian 2012-01-01 19:47:24 -05:00
parent b5eb06a22a
commit bed762c81e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ find({wanted => \&wanted, no_chdir => 1}, '.');
sub wanted {
# prevent corruption of git indexes, ./.git
if ($File::Find::name =~ m{^\./\.git$})
if ($_ eq '.git')
{
$File::Find::prune = 1;
return;