8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6423390 commit 9f60880Copy full SHA for 9f60880
src/tools/copyright.pl
@@ -2,7 +2,7 @@
2
#################################################################
3
# copyright.pl -- update copyright notices throughout the source tree, idempotently.
4
#
5
-# Copyright (c) 2011, PostgreSQL Global Development Group
+# Copyright (c) 2011-2012, PostgreSQL Global Development Group
6
7
# src/tools/copyright.pl
8
@@ -23,6 +23,13 @@
23
find({wanted => \&wanted, no_chdir => 1}, '.');
24
25
sub wanted {
26
+ # prevent corruption of git indexes, ./.git
27
+ if ($File::Find::name =~ m{^\./\.git$})
28
+ {
29
+ $File::Find::prune = 1;
30
+ return;
31
+ }
32
+
33
return if ! -f $File::Find::name || -l $File::Find::name;
34
35
my @lines;
0 commit comments