From f431aac75057128e68b7694ca4f8de45c4c656fe Mon Sep 17 00:00:00 2001 From: Nuno Sa Date: Thu, 27 Apr 2023 14:02:26 +0200 Subject: [PATCH] git-series-push: only run get_maintainers on version 1 After running git series-push for version 1, we should not need to run get_maintainers in the following iterations as git-publish will save the all the emails for us. Signed-off-by: Nuno Sa --- git-series-push/git-series-push | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-series-push/git-series-push b/git-series-push/git-series-push index 3ae177e..7d26918 100755 --- a/git-series-push/git-series-push +++ b/git-series-push/git-series-push @@ -67,6 +67,7 @@ end_series() { exit 0 } +v1=$(git tag -l | grep -Eo "$(git rev-parse --abbrev-ref HEAD)-v[1-9]+[0-9]?$" || echo "y") count="1" lkml="n" first="" @@ -110,7 +111,7 @@ while [ $# -ge 1 ]; do shift done -if [[ ${no_linux} == "n" ]]; then +if [[ ${no_linux} == "n" && ${v1} == "y" ]]; then OPTS="--no-roles --no-rolestats --remove-duplicates --git --git-min-percent=67" to=$(git show -$count | scripts/get_maintainer.pl $OPTS --no-m --no-r) cc=$(git show -$count | scripts/get_maintainer.pl $OPTS --no-l)