From: Thomas Monjalon Date: Mon, 31 Jul 2017 12:07:38 +0000 (+0200) Subject: devtools: ignore non merged tags for backport X-Git-Tag: spdx-start~2261 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=26857dabb3c91031beb2faab6237969951341a30;p=dpdk.git devtools: ignore non merged tags for backport When checking if a buggy commit was introduced in an old version, the script compares last tag containing the bug and current version. The non merged tags from non related branches must be ignored. Signed-off-by: Thomas Monjalon --- diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index 740494677f..5800687419 100755 --- a/devtools/git-log-fixes.sh +++ b/devtools/git-log-fixes.sh @@ -66,7 +66,7 @@ range="$*" # get major release version of a commit commit_version () # { - tag=$(git tag -l --contains $1 | head -n1) + tag=$(git tag -l --contains $1 --merged | head -n1) if [ -z "$tag" ] ; then # before -rc1 tag of release in progress make showversion | cut -d'.' -f-2