Skip to content

Commit 7c1372e

Browse files
use git clone/checkout (#168)
1 parent b82b452 commit 7c1372e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: docs/tutorial-spack.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ This guide explains a _developer workflow_ allowing to either build your own pac
1515
!!! tip
1616
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:
1717
```bash
18-
git clone \
19-
-b $(jq -r .spack.commit /user-environment/meta/configure.json) \
20-
$(jq -r .spack.repo /user-environment/meta/configure.json) $SCRATCH/spack
18+
git clone --filter=tree:0 $(jq -r .spack.repo /user-environment/meta/configure.json)
19+
git -C spack checkout $(jq -r .spack.commit /user-environment/meta/configure.json)
2120
```
2221

2322
!!! warning

0 commit comments

Comments
 (0)