diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-05-13 09:49:44 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-05-13 10:36:31 +0200 |
commit | 275b871226d711f2a4318a600b824803e3976db3 (patch) | |
tree | 2e767a606ffdf8a6dc0ed134d73dac96ddc9b957 | |
parent | 1a9f1c491b749b3a9c57063838c7876a7ab3196f (diff) | |
download | ptxdist-275b871226d711f2a4318a600b824803e3976db3.tar.gz ptxdist-275b871226d711f2a4318a600b824803e3976db3.tar.xz |
git-ptx-patches: Fix corner case when searching for a tag in series file
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>
-rwxr-xr-x | scripts/git-ptx-patches | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches index b52817399..8bf1731ae 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 |