From c55db9d4157413ca7e9a0d57daf1b89313fc68f7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 25 Jul 2017 02:15:02 +0100 Subject: [PATCH] Clone --- publish.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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