From bfcfef98ee8e1f4e5ed0c9168b0fbd8399852a62 Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Wed, 28 Feb 2024 15:46:47 -0800 Subject: [PATCH] Fetch only branch when cloning examples repository --- etc/scripts/build-examples.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/scripts/build-examples.sh b/etc/scripts/build-examples.sh index 8e45410340d..e5073563c2c 100755 --- a/etc/scripts/build-examples.sh +++ b/etc/scripts/build-examples.sh @@ -30,9 +30,7 @@ error_trap_setup readonly HELIDON_EXAMPLES_PATH=${WS_DIR}/helidon-examples if [ ! -d "${HELIDON_EXAMPLES_PATH}" ]; then echo "Cloning examples repository into ${HELIDON_EXAMPLES_PATH}" - git clone git@github.com:helidon-io/helidon-examples.git "${HELIDON_EXAMPLES_PATH}" - cd "${HELIDON_EXAMPLES_PATH}" - git checkout dev-3.x + git clone --branch dev-3.x --single-branch git@github.com:helidon-io/helidon-examples.git "${HELIDON_EXAMPLES_PATH}" fi # Make sure the helidon version from the example repo aligns with this repository