diff --git a/gitlab-build.sh b/gitlab-build.sh
index 0fd5f5130f29913617123a125973f99d71d5472b..437173da7c1bb1ccee76d48fdb8cf549d83ad7c1 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -121,6 +121,7 @@ elif [ "$CI_COMMIT_TAG" != "" ]; then
 	export GITLAB_USER=docs
 	export GITLAB_HOST=$CI_SERVER_HOST
 	export PROJECT_REPO=docs.beagleboard.io
+	git fetch --all -v
 	git checkout main
 	echo "git branch output check"
 	git branch