From 171d9b82dd3c9730f201efeec8a4403a2f17e0d0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 25 Jul 2017 01:30:32 +0100 Subject: [PATCH] Force checkout --- publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 4e4724c84..78268c8c4 100755 --- a/publish.sh +++ b/publish.sh @@ -20,7 +20,7 @@ touch output_${SITE_ENV}/.nojekyll # Add, commit and push the changes. cd output_${SITE_ENV} cp -R ../.git . -git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH +git checkout -f $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH git add --all . git commit -m "Re-generate site. $SHA" git push $SSH_REPO $TARGET_BRANCH