diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index e64e447..924b446 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -173,7 +173,7 @@ latest_tag=$(./set_versions.py getlatest)
 git reset --hard
 git clean -ffdx
 
-for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_sphinx_commit" --format '%(refname:lstrip=3)') $(git tag --contains "$first_sphinx_commit" --contains "$first_dunfell_sphinx_commit" 'yocto-*') transition; do
+for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_sphinx_commit" --format '%(refname:lstrip=3)') $(git tag --contains "$first_sphinx_commit" --contains "$first_dunfell_sphinx_commit" 'yocto-*'); do
     if [ "$branch" = "HEAD" ]; then
         continue
     fi
