From: Costa Shulyupin <costa.shul@redhat.com>
To: Joe Perches <joe@perches.com>, linux-kernel@vger.kernel.org (open list)
Cc: Costa Shulyupin <costa.shul@redhat.com>
Subject: [PATCH] get_maintainer: strip long text in brackets from mail description
Date: Tue, 25 Jul 2023 10:06:42 +0300 [thread overview]
Message-ID: <20230725070642.2270207-1-costa.shul@redhat.com> (raw)
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
next reply other threads:[~2023-07-25 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 7:06 Costa Shulyupin [this message]
2023-07-25 7:18 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230725070642.2270207-1-costa.shul@redhat.com \
--to=costa.shul@redhat.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®