mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] git-ptx-patches: Fix corner case when searching for a tag in series file
Date: Fri, 13 May 2022 09:49:44 +0200	[thread overview]
Message-ID: <20220513074944.262539-1-u.kleine-koenig@pengutronix.de> (raw)

Require a space after the tag name, otherwise searching for tag=foo might
match a line

	#tag:foobar ...

Fixes: 957c6c663cdd ("git-ptx-patches: Allow patches before base tag")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 scripts/git-ptx-patches | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches
index b52817399d45..8bf1731aeb53 100755
--- a/scripts/git-ptx-patches
+++ b/scripts/git-ptx-patches
@@ -73,7 +73,7 @@ while getopts "aft:n" opt; do
 done
 shift $((${OPTIND} - 1))
 
-tag2=$(grep "#tag:" .ptxdist/series | awk "/#tag:${tag}/{if (getline) print \$1}" | sed 's,#tag:,,')
+tag2=$(grep "#tag:" .ptxdist/series | awk "/#tag:${tag} /{if (getline) print \$1}" | sed 's,#tag:,,')
 range="${tag}..${tag2}"
 
 if "${all_tags}" ; then

base-commit: 5b07b31b850e69493e4fd7bd4fa46501ee92684a
-- 
2.35.1




             reply	other threads:[~2022-05-13  7:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13  7:49 Uwe Kleine-König [this message]
2022-05-25  9:45 ` [ptxdist] [APPLIED] " Michael Olbrich

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=20220513074944.262539-1-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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