Skip to content

Commit

Permalink
Merge pull request #30669 from gsmet/faster-doc-preview
Browse files Browse the repository at this point in the history
sync-web-site.sh - Add --depth=1 when the website history is not needed
  • Loading branch information
gsmet authored Jan 27, 2023
2 parents e80745f + 9dd24ea commit 77e17c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/sync-web-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ fi

if [ -z $TARGET_DIR ]; then
TARGET_DIR=target/web-site
git clone -b develop --single-branch [email protected]:quarkusio/quarkusio.github.io.git ${TARGET_DIR}
GIT_OPTIONS=""
if [[ "$QUARKUS_WEB_SITE_PUSH" != "true" ]]; then
GIT_OPTIONS="--depth=1"
fi
git clone -b develop --single-branch $GIT_OPTIONS [email protected]:quarkusio/quarkusio.github.io.git ${TARGET_DIR}
fi

if [ $BRANCH == "main" ] && [ "$QUARKUS_RELEASE" == "true" ]; then
Expand Down

0 comments on commit 77e17c3

Please sign in to comment.