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-koe...@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-koe...@pengutronix.de> > Message-Id: <20220513074944.262539-1-u.kleine-koe...@pengutronix.de> > Signed-off-by: Michael Olbrich <m.olbr...@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