summaryrefslogtreecommitdiff
path: root/tools/docs-push-gh-pages
diff options
context:
space:
mode:
Diffstat (limited to 'tools/docs-push-gh-pages')
-rwxr-xr-xtools/docs-push-gh-pages1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/docs-push-gh-pages b/tools/docs-push-gh-pages
index a633087..276ff3e 100755
--- a/tools/docs-push-gh-pages
+++ b/tools/docs-push-gh-pages
@@ -3,6 +3,7 @@ set -e
./docs-generate
cd ..
+git branch -D gh-pages || true
git checkout --track origin/gh-pages
find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r || true
mv docs/* .