From 2fac6c65ade9e0a8139987039ba620f4c486cb61 Mon Sep 17 00:00:00 2001 From: cezary-witkowski Date: Tue, 7 Jan 2025 15:59:59 +0100 Subject: [PATCH] [MNT-24604] Use local variable --- scripts/ci/build_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/build_functions.sh b/scripts/ci/build_functions.sh index ad072ccb81..4a0454c64d 100644 --- a/scripts/ci/build_functions.sh +++ b/scripts/ci/build_functions.sh @@ -76,7 +76,7 @@ function remoteBranchExists() { local REMOTE_REPO="${1}" local BRANCH="${2}" - git ls-remote --exit-code --heads "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REMOTE_REPO}" "${BRANCH_NAME}" &>/dev/null + git ls-remote --exit-code --heads "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REMOTE_REPO}" "${BRANCH}" &>/dev/null } function identifyUpstreamSourceBranch() {