From: Ryota MIBU Date: Fri, 8 Jan 2016 09:40:19 +0000 (+0900) Subject: fix args for git-clone in build-composite.sh X-Git-Tag: brahmaputra.1.0~38 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F5873%2F2;p=opnfvdocs.git fix args for git-clone in build-composite.sh This patch also adds xtrace for debug. Change-Id: Ic0642f31ba256ea768f7e7c3a767d2bd3f7f3ba8 Signed-off-by: Ryota MIBU --- 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 }