From e9dfcaaa445e4e4ecf93c656b058f53e240e26c0 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sat, 25 Sep 2021 23:53:08 +0000 Subject: [PATCH] more updates to build-docs.sh --- build-docs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build-docs.sh b/build-docs.sh index 1bf8fb112..cc81cd47d 100755 --- a/build-docs.sh +++ b/build-docs.sh @@ -15,8 +15,7 @@ fi cargo build -p taskchampion-cli --features usage-docs --bin usage-docs # create a worktree of this repo, with the `gh-pages` branch checked out -git branch -D gh-pages 2>/dev/null || true -git checkout -b gh-pages $REMOTE/gh-pages +git branch -f gh-pages $REMOTE/gh-pages if ! [ -d ./docs/tmp ]; then git worktree add docs/tmp gh-pages fi