This patch also adds xtrace for debug.
Change-Id: Ic0642f31ba256ea768f7e7c3a767d2bd3f7f3ba8
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
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}
_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
}