Build system: Fix _build/github-clone.sh
This commit is contained in:
parent
fad5d869ee
commit
381b339b9f
|
@ -23,11 +23,7 @@ printf 'CLONE_REPO_BRANCH="%s"\n' "$CLONE_REPO_BRANCH"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# clone repo
|
# clone repo
|
||||||
git clone "$CLONE_REPO_URL" "$CLONE_TARGET_DIR"
|
[ -n "$CLONE_REPO_BRANCH" ] || CLONE_REPO_BRANCH="master"
|
||||||
|
git clone --branch="$CLONE_REPO_BRANCH" "$CLONE_REPO_URL" "$CLONE_TARGET_DIR"
|
||||||
# checkout branch
|
|
||||||
if [ -n "$CLONE_REPO_BRANCH" ]; then
|
|
||||||
git checkout "$CLONE_REPO_BRANCH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue