projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
101b29a
)
get_maintainer: quiet noisy implicit -f vcs_file_exists checking
author
Joe Perches
<
[email protected]
>
Thu, 25 Aug 2016 22:16:48 +0000
(15:16 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 27 Aug 2016 00:39:34 +0000
(17:39 -0700)
Checking command line filenames that are outside the git tree can emit a
noisy and confusing message.
Quiet that message by redirecting stderr.
Verify that the command was executed successfully.
Fixes: 4cad35a7ca69 ("get_maintainer.pl: reduce need for command-line option -f")
Link:
http://lkml.kernel.org/r/1970a1d2fecb258e384e2e4fdaacdc9ccf3e30a4.1470955439.git.joe@perches.com
Signed-off-by: Joe Perches <
[email protected]
>
Reported-by: Wolfram Sang <
[email protected]
>
Tested-by: Wolfram Sang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/get_maintainer.pl
patch
|
blob
|
history
diff --git
a/scripts/get_maintainer.pl
b/scripts/get_maintainer.pl
index 49a00d54b835f156745c27bfb12b1f64bcf9140c..aed4511f0304e4922ff6770a3d573777b4f235ed 100755
(executable)
--- a/
scripts/get_maintainer.pl
+++ b/
scripts/get_maintainer.pl
@@
-2136,9
+2136,11
@@
sub vcs_file_exists {
my $cmd = $VCS_cmds{"file_exists_cmd"};
$cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd
-
+ $cmd .= " 2>&1";
$exists = &{$VCS_cmds{"execute_cmd"}}($cmd);
+ return 0 if ($? != 0);
+
return $exists;
}