Skip to content

Commit

Permalink
Use shallow clone in reset environment
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Jun 14, 2024
1 parent 07f6c5a commit 22743aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lab/bin/reset-environment
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ if [ ! -z "${REPOSITORY_REF}" ]; then

logmessage "Refreshing copy of workshop repository from GitHub..."

git clone --quiet https://github.com/$REPOSITORY_OWNER/$REPOSITORY_NAME.git $repository_path
(cd $repository_path && git checkout --quiet "${REPOSITORY_REF}")

git clone --depth=1 --single-branch --branch=${REPOSITORY_REF} --quiet https://github.com/$REPOSITORY_OWNER/$REPOSITORY_NAME.git $repository_path

logmessage ""

cp -R $repository_path/manifests $manifests_path
Expand Down

0 comments on commit 22743aa

Please sign in to comment.