diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 0ce2d367fa..3fb1ad4b69 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -444,10 +444,12 @@ foreach my $file (@ARGV) { my $patch_line = $_; if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) { my $filename = $1; - $filename =~ s@^[^/]*/@@; - $filename =~ s@\n@@; - $lastfile = $filename; - push(@files, $filename); + if ($1 ne "/dev/null") { #Ignore the no-file placeholder + $filename =~ s@^[^/]*/@@; + $filename =~ s@\n@@; + $lastfile = $filename; + push(@files, $filename); + } $patch_prefix = "^[+-].*"; #Now parsing the actual patch } elsif (m/^\@\@ -(\d+),(\d+)/) { if ($email_git_blame) {