summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-05-11 22:40:47 +0000
committerGerrit Code Review <review@openstack.org>2023-05-11 22:40:47 +0000
commitca3616f6794790d0b701c3cee088bc35d5dcea8b (patch)
treee2f37f18a5597539c11ed2bebdc94d004f3c8a37
parent3b84421c6ccadb69ab7e3ead3550931f20db2ec4 (diff)
parentabd9a34a6014730620cee15a44f328e48e57398e (diff)
downloadnova-ca3616f6794790d0b701c3cee088bc35d5dcea8b.tar.gz
Merge "CI: fix backport validator for new branch naming" into stable/zed
-rwxr-xr-xtools/check-cherry-picks.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check-cherry-picks.sh b/tools/check-cherry-picks.sh
index 46cef8c225..3042aa1659 100755
--- a/tools/check-cherry-picks.sh
+++ b/tools/check-cherry-picks.sh
@@ -23,7 +23,7 @@ hashes=$(git show --format='%b' --quiet $commit_hash | sed -nr 's/^.cherry picke
checked=0
branches+=""
for hash in $hashes; do
- branch=$(git branch -a --contains "$hash" 2>/dev/null| grep -oE '(master|stable/[a-z]+)')
+ branch=$(git branch -a --contains "$hash" 2>/dev/null| grep -oE '(master|stable/[a-z0-9.]+)')
if [ $? -ne 0 ]; then
echo "Cherry pick hash $hash not on any master or stable branches"
exit 1