Merge "Adapt make_branch script to new 'unmaintained/<series>' branch"

This commit is contained in:
Zuul 2024-02-29 16:54:27 +00:00 committed by Gerrit Code Review
commit 701ccad42b

View File

@ -55,9 +55,16 @@ if $(git tag | grep ${NEW_BRANCH/\//-}-eol > /dev/null); then
cleanup_and_exit cleanup_and_exit
fi fi
# Skip branch creation in case <series>-eol tag exists # Skip stable/<series> or unmaintained/<series> branch creation in case
if $(git tag | grep ${NEW_BRANCH#stable/}-eol >/dev/null); then # <series>-eol tag exists
echo "A ${NEW_BRANCH#stable/}-eol tag already exists !" if $(git tag | grep ${NEW_BRANCH//@(stable\/|unmaintained\/)}-eol >/dev/null); then
echo "A ${NEW_BRANCH//@(stable\/|unmaintained\/)}-eol tag already exists !"
cleanup_and_exit
fi
# Skip stable/<series> branch creation in case <series>-eom tag exists
if $(git tag | grep ${NEW_BRANCH#stable/}-eom >/dev/null); then
echo "A ${NEW_BRANCH#stable/}-eom tag already exists !"
cleanup_and_exit cleanup_and_exit
fi fi