wai-website.netlify.app uses quite a few submodules and the default checkout during triggered deploy often fails. A manual
delete cache and deploy does work. Local Builds when I init the submodules never show that error.
4:48:01 PM: Preparing Git Reference refs/heads/master 4:48:04 PM: Error fetching branch: https://x-access-token:firstname.lastname@example.org/w3c/wai-website refs/heads
To init the modules in a local build I
submodule init and
submodule update --remote
The default Netlify build
git clone is obviously doing something like
--recursive as the submodules are processed. But I have no visibility into that. And I can see no way to alter the clone options used
In addition, the actual options I would like to use to init and update all the submodules is only available in new git versions of clone.
So I’m guess I could be successful here if I can disable the default git clones broken submodule handling and add an
git submodule update --init -remote to the build commend