diff --git a/ci/build-libmpv-mingw64.sh b/ci/build-libmpv-mingw64.sh index 7c48b1f..1a9c1d7 100644 --- a/ci/build-libmpv-mingw64.sh +++ b/ci/build-libmpv-mingw64.sh @@ -115,9 +115,12 @@ function gettar { } # Clone a git dependency at a pinned tag (shallow, tag-checked-out). +# Submodules are fetched shallow too: libplacebo needs its bundled `glad`, +# ffmpeg/dav1d/others carry submodules needed for the build. function gitpin { local url=$1 dest=$2 tag=$3 - [ -d "$dest" ] || git clone --depth=1 --branch "$tag" "$url" "$dest" + [ -d "$dest" ] || git clone --depth=1 --branch "$tag" \ + --recurse-submodules --shallow-submodules "$url" "$dest" pushd "$dest" git checkout --quiet "$tag" popd