mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix copyright.pl to properly skip the .git directory by adding a
basename() qualification.
This commit is contained in:
@ -11,6 +11,7 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
use File::Find;
|
||||
use File::Basename;
|
||||
use Tie::File;
|
||||
|
||||
my $pgdg = 'PostgreSQL Global Development Group';
|
||||
@ -25,9 +26,8 @@ find({ wanted => \&wanted, no_chdir => 1 }, '.');
|
||||
|
||||
sub wanted
|
||||
{
|
||||
|
||||
# prevent corruption of git indexes by ignoring any .git/
|
||||
if ($_ eq '.git')
|
||||
if (basename($_) eq '.git')
|
||||
{
|
||||
$File::Find::prune = 1;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user