From 7c21358f3a077f70297335113ec24b7a57c10eb8 Mon Sep 17 00:00:00 2001 From: Johannes Keller Date: Thu, 8 Oct 2026 14:46:48 +0200 Subject: [PATCH] Build script: Add --checkout flag to submodule update - for forcing the update also for CLM3.5 - related to #136 --- build_tsmp2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_tsmp2.sh b/build_tsmp2.sh index 9d07bc3..b70cceb 100755 --- a/build_tsmp2.sh +++ b/build_tsmp2.sh @@ -95,12 +95,12 @@ if [ -n "${comp_name}" ] && [ -z "${comp_srcname}" ];then read -p "submodule ${submodule_name} already exists. Do you want to overwrite it? (y/N) " yn if [ "${yn,}" = "y" ];then message "Overwrite submodule ${submodule_name}" - git submodule update --init --force -- ${submodule_name} + git submodule update --init --checkout --force -- ${submodule_name} else message "Do not overwrite submodule ${submodule_name}" fi else - git submodule update --init -- ${submodule_name} + git submodule update --init --checkout -- ${submodule_name} fi fi # compsrc }