Skip to content

Commit

Permalink
Build system: Fix _build/github-clone.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrozenByte committed Nov 2, 2016
1 parent fad5d86 commit 381b339
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions _build/github-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ printf 'CLONE_REPO_BRANCH="%s"\n' "$CLONE_REPO_BRANCH"
echo

# clone repo
git clone "$CLONE_REPO_URL" "$CLONE_TARGET_DIR"

# checkout branch
if [ -n "$CLONE_REPO_BRANCH" ]; then
git checkout "$CLONE_REPO_BRANCH"
fi
[ -n "$CLONE_REPO_BRANCH" ] || CLONE_REPO_BRANCH="master"
git clone --branch="$CLONE_REPO_BRANCH" "$CLONE_REPO_URL" "$CLONE_TARGET_DIR"

echo

0 comments on commit 381b339

Please sign in to comment.