postgres.git / summary / log / commit / refs
commit 5198ae89924db730d7d3ec3ab7b14c17a22c7f82
Author: Bruce Momjian <bruce@momjian.us>
Date: Fri Jul 06 15:43:59 2012 +0000
First released in: 9.3.0, 9.2.0
Fix copyright.pl to properly skip the .git directory by adding a
basename() qualification.
src/tools/copyright.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tools/copyright.pl b/src/tools/copyright.pl
index 26343af97de..c78f20e119e 100755
--- a/src/tools/copyright.pl
+++ b/src/tools/copyright.pl
@@ -11,6 +11,7 @@ use strict;
use warnings;
use File::Find;
+use File::Basename;
use Tie::File;
my $pgdg = 'PostgreSQL Global Development Group';
@@ -25,15 +26,14 @@ 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;
}
- return if !-f $File::Find::name || -l $File::Find::name;
+ return if ! -f $File::Find::name || -l $File::Find::name;
# skip file names with binary extensions
# How are these updated? bjm 2012-01-02
[parent: b9eb808bf2e5]