diff options
Diffstat (limited to 'scripts/get_maintainer.pl')
-rwxr-xr-x | scripts/get_maintainer.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 122fcdaf42c8..aed4511f0304 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl | |||
@@ -432,7 +432,7 @@ foreach my $file (@ARGV) { | |||
432 | die "$P: file '${file}' not found\n"; | 432 | die "$P: file '${file}' not found\n"; |
433 | } | 433 | } |
434 | } | 434 | } |
435 | if ($from_filename || vcs_file_exists($file)) { | 435 | if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) { |
436 | $file =~ s/^\Q${cur_path}\E//; #strip any absolute path | 436 | $file =~ s/^\Q${cur_path}\E//; #strip any absolute path |
437 | $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree | 437 | $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree |
438 | push(@files, $file); | 438 | push(@files, $file); |
@@ -2136,9 +2136,11 @@ sub vcs_file_exists { | |||
2136 | 2136 | ||
2137 | my $cmd = $VCS_cmds{"file_exists_cmd"}; | 2137 | my $cmd = $VCS_cmds{"file_exists_cmd"}; |
2138 | $cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd | 2138 | $cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd |
2139 | 2139 | $cmd .= " 2>&1"; | |
2140 | $exists = &{$VCS_cmds{"execute_cmd"}}($cmd); | 2140 | $exists = &{$VCS_cmds{"execute_cmd"}}($cmd); |
2141 | 2141 | ||
2142 | return 0 if ($? != 0); | ||
2143 | |||
2142 | return $exists; | 2144 | return $exists; |
2143 | } | 2145 | } |
2144 | 2146 | ||