From ab366eff0aa538a8664d3077f092f807db3576e4 Mon Sep 17 00:00:00 2001 From: Ryota MIBU Date: Fri, 8 Jan 2016 18:40:19 +0900 Subject: [PATCH] fix args for git-clone in build-composite.sh This patch also adds xtrace for debug. Change-Id: Ic0642f31ba256ea768f7e7c3a767d2bd3f7f3ba8 Signed-off-by: Ryota MIBU --- build-composite.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-composite.sh b/build-composite.sh index c524d8b96..4cda205b2 100755 --- a/build-composite.sh +++ b/build-composite.sh @@ -3,6 +3,7 @@ set -o errexit set -o nounset set -o pipefail +set -o xtrace GIT_CLONE_BASE=${GIT_CLONE_BASE:-ssh://gerrit.opnfv.org:29418} GERRIT_BRANCH=${GERRIT_BRANCH:-master} @@ -12,7 +13,7 @@ git_clone() { _repo="$1" [[ -d "$_repo" ]] && return 0 - git clone --depth 1 --quiet $GIT_CLONE_BASE/$_repo $GERRIT_BRANCH + git clone -b $GERRIT_BRANCH --depth 1 --quiet $GIT_CLONE_BASE/$_repo } -- 2.16.6