Skip to content

Commit

Permalink
Fetch only branch when cloning examples repository
Browse files Browse the repository at this point in the history
  • Loading branch information
barchetta committed Feb 28, 2024
1 parent 002bdaf commit bfcfef9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions etc/scripts/build-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]: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 [email protected]:helidon-io/helidon-examples.git "${HELIDON_EXAMPLES_PATH}"
fi

# Make sure the helidon version from the example repo aligns with this repository
Expand Down

0 comments on commit bfcfef9

Please sign in to comment.