mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] git-ptx-patches: Fix corner case when searching for a tag in series file
Date: Wed, 25 May 2022 11:45:12 +0200	[thread overview]
Message-ID: <20220525094512.2845413-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20220513074944.262539-1-u.kleine-koenig@pengutronix.de>

Thanks, applied as 275b871226d711f2a4318a600b824803e3976db3.

Michael

[sent from post-receive hook]

On Wed, 25 May 2022 11:45:12 +0200, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
> 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>
> Message-Id: <20220513074944.262539-1-u.kleine-koenig@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> 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



      reply	other threads:[~2022-05-25  9:46 UTC|newest]

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

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