From 87455305d39aea0f1fb2aaee8687f970a917b40e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Wed, 22 Mar 2023 17:23:14 +0100
Subject: [PATCH] Add depth 1 to git clone.

---
 platforms/common/spack_utils.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/platforms/common/spack_utils.sh b/platforms/common/spack_utils.sh
index e870f7f..28b1033 100644
--- a/platforms/common/spack_utils.sh
+++ b/platforms/common/spack_utils.sh
@@ -1,7 +1,7 @@
 function _install_spack() {
 if [ ! -e ${SPACK_ROOT} ]; then
   echo "Cloning to ${SPACK_ROOT}"
-  git clone ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT}
+  git clone --depth 1 ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT}
 fi
 
 _init_spack
-- 
GitLab