From e20f00abc400adf0ec6eb920d33f3c2518eb49c0 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 9 Dec 2019 12:36:04 +0100 Subject: [PATCH] Fix website automation for when gh-pages branch does not exist --- chezmoi.io/make-gh-pages.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/chezmoi.io/make-gh-pages.sh b/chezmoi.io/make-gh-pages.sh index ae57e7d4f13..928fbf1c2a9 100755 --- a/chezmoi.io/make-gh-pages.sh +++ b/chezmoi.io/make-gh-pages.sh @@ -13,6 +13,7 @@ cleanup() { rm -rf ${tmpdir} } trap cleanup EXIT +git branch -f gh-pages origin/gh-pages git clone --branch=gh-pages --local .. ${tmpdir} # copy the new website to the temporary directory