get_maintainer: quiet noisy implicit -f vcs_file_exists checking
PATCH 2/12 get_maintainer: quiet noisy implicit -f vcs_file_exists checking
From: Joe Perches <[email protected]>
Subject: get_maintainer: quiet noisy implicit -f vcs_file_exists checking
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 open here
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]>
---
scripts/get_maintainer.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/get_maintainer.pl renamed from scripts/get_maintainer.pl~get_maintainer-quiet-noisy-implicit-f-vcs_file_exists-checking +0 -0
@@ -2136,9 +2136,11 @@ sub vcs_file_exists { my $cmd = $VCS_cmds{"file_exists_cmd"}; $cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd