Skip to content

Commit 30d866e

Browse files
author
pandas-docs-bot
committed
DOC: force fetch on build docs
1 parent 71bb0f7 commit 30d866e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/build_docs.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ if [ "$DOC" ]; then
4444

4545
# create the repo
4646
git init
47+
48+
git remote remove origin
49+
git remote add origin "https://${PANDAS_GH_TOKEN}@github.com/pandas-docs/pandas-docs-travis.git"
50+
git fetch origin
51+
4752
touch README
4853
git add README
4954
git commit -m "Initial commit" --allow-empty
@@ -52,8 +57,7 @@ if [ "$DOC" ]; then
5257
touch .nojekyll
5358
git add --all .
5459
git commit -m "Version" --allow-empty
55-
git remote remove origin
56-
git remote add origin "https://${PANDAS_GH_TOKEN}@github.com/pandas-docs/pandas-docs-travis.git"
60+
5761
git push origin gh-pages -f
5862
fi
5963

0 commit comments

Comments
 (0)