From 6a60657f7ee4794b577758d24daf5c8a1a7e08e2 Mon Sep 17 00:00:00 2001 From: Hans Oskar Aaviksoo Date: Tue, 2 Dec 2025 16:14:56 +0200 Subject: [PATCH] Fetch unshallow version of bsp-geth --- scripts/bsp-geth/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/bsp-geth/build.sh b/scripts/bsp-geth/build.sh index dfff6373..16b28829 100644 --- a/scripts/bsp-geth/build.sh +++ b/scripts/bsp-geth/build.sh @@ -2,6 +2,13 @@ set -euo pipefail cd "${DEPOT_PROJECT_NAME}" + +# Fetch full git history if this is a shallow clone +# This is needed because the build process (build/ci.go) requires access to git commit objects +if git rev-parse --is-shallow-repository >/dev/null 2>&1; then + git fetch --unshallow || git fetch --depth=0 +fi + mkdir bin make geth