My application is currently cloning via the following command:
git clone --recurse-submodules https://x-access-token:<token>@mygithub.com/repo.git
This works fine when the repository has no submodules or the submodules use a relative path. However, if the repository contains a submodule which points to another repository (see below) then my application will be prompted to supply a password with the above command. Is there something I should be doing in these cases? Do I need to recursively modify .gitmodules to include the token for applicable URLs?
[submodule "foobar"] path = foobar url = https://mygithub.com/org/submodulerepo.git branch = master