diff --git a/docs/sync-web-site.sh b/docs/sync-web-site.sh index 3867714766a96..82b13ca168c4b 100755 --- a/docs/sync-web-site.sh +++ b/docs/sync-web-site.sh @@ -32,7 +32,11 @@ fi if [ -z $TARGET_DIR ]; then TARGET_DIR=target/web-site - git clone -b develop --single-branch git@github.com: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 git@github.com:quarkusio/quarkusio.github.io.git ${TARGET_DIR} fi if [ $BRANCH == "main" ] && [ "$QUARKUS_RELEASE" == "true" ]; then