From 869b749a7636d20f21b28086bf6c950e0f54856b Mon Sep 17 00:00:00 2001
From: Serge Bazanski <q3k@q3k.org>
Date: Sun, 13 Aug 2023 17:33:22 +0200
Subject: [PATCH] ci: yet another attempt at circumventing shallow clones

---
 tools/dist.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/dist.sh b/tools/dist.sh
index b2b030e148..b24475cc0f 100755
--- a/tools/dist.sh
+++ b/tools/dist.sh
@@ -19,7 +19,7 @@ if [ ! -z "${CI}" ]; then
         # Otherwise, let normal version machinery run, but fetch all changes
         # and check out the correct branch. Otherwise we'll get weird version
         # strings.
-        git fetch origin "$CI_COMMIT_REF_NAME"
+        git fetch --unshallow origin "$CI_COMMIT_REF_NAME"
         git checkout "$CI_COMMIT_REF_NAME"
         version="$(python3 components/st3m/host-tools/version.py)"
     fi
-- 
GitLab