From d1157288ca33b12048cc421fa3ab53d72a30038e Mon Sep 17 00:00:00 2001 From: Esko Dijk Date: Tue, 11 Jun 2024 08:40:07 +0000 Subject: [PATCH] [script] fix issue that historic commits not found in --depth 1 cloned repo. --- script/common.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/script/common.sh b/script/common.sh index e4ab454c..01e40065 100644 --- a/script/common.sh +++ b/script/common.sh @@ -63,13 +63,7 @@ go_install() get_openthread() { if [[ ! -f ./openthread/script/bootstrap ]]; then - git submodule update --init --recursive --depth 1 - fi -} - -get_openthread_versions() -{ - if [[ ! -f ./openthread/script/bootstrap ]]; then + # --depth 1 is not used here, due to need to build historic commits for OT nodes. git submodule update --init --recursive fi } @@ -109,7 +103,7 @@ build_openthread_br() build_openthread_versions() { - get_openthread_versions + get_openthread install_openthread_buildtools ( cd ot-rfsim