Skip to content

Commit

Permalink
sync-web-site.sh - Add --depth=1 when the website history is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jan 27, 2023
1 parent e80745f commit 9dd24ea
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 9dd24ea

Please sign in to comment.