From 2c5d6450753e92c61b29a37c028acea874db63d3 Mon Sep 17 00:00:00 2001 From: "Cezar.Leahu" Date: Tue, 18 Aug 2020 12:28:11 +0300 Subject: [PATCH] ACS-457: Build linkage, tagging and release - fix git ls-remote command --- scripts/travis/build_functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/travis/build_functions.sh b/scripts/travis/build_functions.sh index da96fa4903..f37febfe6b 100644 --- a/scripts/travis/build_functions.sh +++ b/scripts/travis/build_functions.sh @@ -12,7 +12,7 @@ function cloneRepo() { local REPO="${1}" local TAG_OR_BRANCH="${2}" - printf "Clonning \"%s\" on %s" "${TAG_OR_BRANCH}" "${REPO}" + printf "Clonning \"%s\" on %s\n" "${TAG_OR_BRANCH}" "${REPO}" # clone the repository branch/tag pushd "$(dirname "${BASH_SOURCE[0]}")/../../../" >/dev/null @@ -64,7 +64,7 @@ function remoteBranchExists() { local REMOTE_REPO="${1}" local BRANCH="${2}" - git ls-remote --exit-code --heads "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REMOTE_REPO}" "${BRANCH}" + git ls-remote --exit-code --heads "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REMOTE_REPO}" "${BRANCH}" &>/dev/null } function identifyUpstreamSourceBranch() {