From 9dd24ea79e44db03d8e068452c58ae79fcd9dbf2 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 18:27:05 +0100 Subject: [PATCH] sync-web-site.sh - Add --depth=1 when the website history is not needed --- docs/sync-web-site.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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