From 7c1372e208233f6d08052f7c87c1b1593823b536 Mon Sep 17 00:00:00 2001 From: Simon Pintarelli <1237199+simonpintarelli@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:55:49 +0100 Subject: [PATCH] use git clone/checkout (#168) --- docs/tutorial-spack.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/tutorial-spack.md b/docs/tutorial-spack.md index 6f0b2fea..7de2248b 100644 --- a/docs/tutorial-spack.md +++ b/docs/tutorial-spack.md @@ -15,9 +15,8 @@ This guide explains a _developer workflow_ allowing to either build your own pac !!! tip To avoid compatibility issues, try to match the version of your local [Spack] instance with the version of [Spack] of the uenv. You can use the following command to clone the same [Spack] version used by the uenv: ```bash - git clone \ - -b $(jq -r .spack.commit /user-environment/meta/configure.json) \ - $(jq -r .spack.repo /user-environment/meta/configure.json) $SCRATCH/spack + git clone --filter=tree:0 $(jq -r .spack.repo /user-environment/meta/configure.json) + git -C spack checkout $(jq -r .spack.commit /user-environment/meta/configure.json) ``` !!! warning