Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip any .git directory for copyright changes, not just top-level .git
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Jan 2012 00:47:24 +0000 (19:47 -0500)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Jan 2012 00:47:24 +0000 (19:47 -0500)
directories.  Per suggestion from Andrew Dunstan.

src/tools/copyright.pl

index 79458b551c4b5026619547417c8765b118fe4ccb..d52a67e347d9ec52dd7838b28656ec19449a20d8 100755 (executable)
@@ -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;