From bed762c81e6a7f62695d6c8acb78f15c8e85342e Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sun, 1 Jan 2012 19:47:24 -0500
Subject: [PATCH] Skip any .git directory for copyright changes, not just
 top-level .git directories.  Per suggestion from Andrew Dunstan.

---
 src/tools/copyright.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools/copyright.pl b/src/tools/copyright.pl
index 79458b551c4..d52a67e347d 100755
--- a/src/tools/copyright.pl
+++ b/src/tools/copyright.pl
@@ -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;
-- 
GitLab