Make sure you use the https:// read-only URL for your submodules, including nested submodules. You can make this change in your .gitmodules file.
https://help.github.com/articles/using-submodules-with-pages