On the question:
Was figured it out it is necessary to checkout the git submodules to their default branch when a git clone --recursive
is performed, but how to do that?
I tried searching and found this other question:
Suggesting to use the command git clone --recurse-submodules
but after cloning the repository its submodule still not checkout on their default branches.