get_maintainer: exclude MAINTAINERS file(s) from --git-fallback
[linux-2.6-microblaze.git] / scripts / get_maintainer.pl
index 5a36354..2075db0 100755 (executable)
@@ -957,8 +957,10 @@ sub get_maintainers {
 
     foreach my $file (@files) {
        if ($email &&
-           ($email_git || ($email_git_fallback &&
-                           !$exact_pattern_match_hash{$file}))) {
+           ($email_git ||
+            ($email_git_fallback &&
+             $file !~ /MAINTAINERS$/ &&
+             !$exact_pattern_match_hash{$file}))) {
            vcs_file_signoffs($file);
        }
        if ($email && $email_git_blame) {