Clone
This commit is contained in:
parent
27b6e16c90
commit
c55db9d415
|
@ -11,8 +11,7 @@ TARGET_BRANCH="master"
|
|||
BUILD_DIR=".build"
|
||||
|
||||
# Prepare the build directory.
|
||||
mkdir -p $BUILD_DIR
|
||||
cp -R .git $BUILD_DIR
|
||||
git clone $REPO $BUILD_DIR
|
||||
pushd $BUILD_DIR
|
||||
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
|
||||
popd
|
||||
|
|
Reference in a new issue