@@ -388,6 +388,14 @@ clone_searx() {
388388 err_msg "to clone searx sources, user $SERVICE_USER hast to be created first"
389389 return 42
390390 fi
391+ if [[ ! $(git show-ref "refs/heads/${GIT_BRANCH}") ]]; then
392+ warn_msg "missing local branch ${GIT_BRANCH}"
393+ info_msg "create local branch ${GIT_BRANCH} from start point: origin/${GIT_BRANCH}"
394+ git branch "${GIT_BRANCH}" "origin/${GIT_BRANCH}"
395+ fi
396+ if [[ ! $(git branch --show-current) == "${GIT_BRANCH}" ]]; then
397+ warn_msg "take into account, installing branch $GIT_BRANCH while current branch is $(git branch --show-current)"
398+ fi
391399 export SERVICE_HOME
392400 git_clone "$REPO_ROOT" "$SEARX_SRC" \
393401 "$GIT_BRANCH" "$SERVICE_USER"