Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ci): skip nested submodule fetch when fetching submodule tags

Steven Enamakel273bfdd6d611
diff --git a/scripts/ci/fetch-submodule-tags.sh b/scripts/ci/fetch-submodule-tags.sh
index 8f7d886157..3fd03183b8 100755
--- a/scripts/ci/fetch-submodule-tags.sh
+++ b/scripts/ci/fetch-submodule-tags.sh
@@ -4,7 +4,8 @@
# actions/checkout populates the pinned submodule commits but not their tags.
# scripts/ci/check-module-pins.mjs uses `git describe --tags` to compare each
# source contract with its registry artifact version, so the tags must exist.
-# Called by ci-lite.yml's module-pin gate and by the lane runner.
+# Called by ci-lite.yml's module-pin gate and by the lane runner. Only these
+# repositories' own tags are needed, so nested submodules are not fetched.
set -euo pipefail
cd "$(dirname "$0")/../.."
@@ -14,9 +15,9 @@ for module in \
vendor/tinyvoice vendor/tinyruntime vendor/tinymcp vendor/tinyconnectors
do
if [ "$(git -C "$module" rev-parse --is-shallow-repository)" = true ]; then
- git -C "$module" fetch --quiet --unshallow --tags origin
+ git -C "$module" fetch --quiet --no-recurse-submodules --unshallow --tags origin
else
- git -C "$module" fetch --quiet --tags origin
+ git -C "$module" fetch --quiet --no-recurse-submodules --tags origin
fi
done
echo "[ci][submodule-tags] fetched tags for module submodules"