Skip to content

Commit

Permalink
Revert "use git pull instead of clone to avoid polluting the download…
Browse files Browse the repository at this point in the history
… statistics"

This reverts commit d8ee1ef.
atmyers committed Sep 28, 2018
1 parent 6d67820 commit afc4cae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build_and_deploy.sh
Original file line number Diff line number Diff line change
@@ -23,11 +23,8 @@ SHA=`git rev-parse --verify HEAD`

# Clone the existing gh-pages for this repo into out/
# Create a new empty branch if gh-pages doesn't exist yet (should only happen on first deploy)
git clone $REPO out
cd out
git init
git remote add origin $REPO
git fetch $TARGET_BRANCH
git pull origin $TARGET_BRANCH
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..

0 comments on commit afc4cae

Please sign in to comment.