diff --git a/cicd_testing/do-build.sh b/cicd_testing/do-build.sh
index 43cb2e5fd985fcd627fe70786fcf8d2a112eb0be..f02a1a65c65f1eb6bd9e18885efdfdfc443724c2 100755
--- a/cicd_testing/do-build.sh
+++ b/cicd_testing/do-build.sh
@@ -4,6 +4,7 @@ set -x
 
 
 # update submodules
+git submodule foreach --recursive git reset --hard
 git submodule sync --recursive
 git submodule update --recursive --init
 # gather info for debugging later, probably not necessary