* [PATCH] get_maintainer: strip long text in brackets from mail description
@ 2023-07-25 7:06 Costa Shulyupin
2023-07-25 7:18 ` Joe Perches
0 siblings, 1 reply; 2+ messages in thread
From: Costa Shulyupin @ 2023-07-25 7:06 UTC (permalink / raw)
To: Joe Perches, open list; +Cc: Costa Shulyupin
assuming this text is optional,
because truncated bracket causes error of git send-email:
git send-email --to-cmd=get_maintainer.pl ....
Unmatched () '(open list:CXLFLASH (IBM Coherent Accelerator Processor In...)' '' at /usr/libexec/git-core/git-send-email line 652.
error: unable to extract a valid address from: linux-scsi@vger.kernel.org (open list:CXLFLASH (IBM Coherent Accelerator Processor In...)
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
---
scripts/get_maintainer.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index ab123b498fd9..8319694a9c2f 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -1252,6 +1252,7 @@ sub get_subsystem_name {
my $start = find_starting_index($index);
my $subsystem = $typevalue[$start];
+ $subsystem =~ s/\(....*\)\s*//;
if ($output_section_maxlen && length($subsystem) > $output_section_maxlen) {
$subsystem = substr($subsystem, 0, $output_section_maxlen - 3);
$subsystem =~ s/\s*$//;
--
2.41.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] get_maintainer: strip long text in brackets from mail description
2023-07-25 7:06 [PATCH] get_maintainer: strip long text in brackets from mail description Costa Shulyupin
@ 2023-07-25 7:18 ` Joe Perches
0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2023-07-25 7:18 UTC (permalink / raw)
To: Costa Shulyupin, open list
On Tue, 2023-07-25 at 10:06 +0300, Costa Shulyupin wrote:
> assuming this text is optional,
> because truncated bracket causes error of git send-email:
>
> git send-email --to-cmd=get_maintainer.pl ....
> Unmatched () '(open list:CXLFLASH (IBM Coherent Accelerator Processor In...)' '' at /usr/libexec/git-core/git-send-email line 652.
> error: unable to extract a valid address from: linux-scsi@vger.kernel.org (open list:CXLFLASH (IBM Coherent Accelerator Processor In...)
Add --norolestats to your invocation instead
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-25 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 7:06 [PATCH] get_maintainer: strip long text in brackets from mail description Costa Shulyupin
2023-07-25 7:18 ` Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome