summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-01-08 18:40:19 +0900
committerRyota Mibu <r-mibu@cq.jp.nec.com>2016-01-08 09:45:26 +0000
commitab366eff0aa538a8664d3077f092f807db3576e4 (patch)
tree404998c5f3950ab9e324551724d466ec16b54129
parent9809bf269cd60253caa4df74a6373f42f1bf2d95 (diff)
fix args for git-clone in build-composite.sh
This patch also adds xtrace for debug. Change-Id: Ic0642f31ba256ea768f7e7c3a767d2bd3f7f3ba8 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rwxr-xr-xbuild-composite.sh3
1 files changed, 2 insertions, 1 deletions
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
}