diff --git a/publish.sh b/publish.sh index a2000c6c..e9e62264 100755 --- a/publish.sh +++ b/publish.sh @@ -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