Force checkout

This commit is contained in:
Oliver Davies 2017-07-25 01:30:32 +01:00
parent 3898bbd444
commit 171d9b82dd

View file

@ -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