I'm trying to setup a git repository with some submodules. However, whenever I try to do a recursive clone of the repository, it keeps trying to use my local username regardless of the username that I specified on the original git clone command.
Here is the original command I ran
git clone --recursive ssh://{user id}@{ip address}/app/data/git/repo.git
The clone of the original repo works fine and uses the user id specified in the ssh line. However, when it gets to the submodules it uses my local account instead of the user id specified in the ssh request.
This is what my .gitmodules file looks like
[submodule "modules/submodule"]
path = modules/submodule
url = ssh://{ip address}/app/data/git/submodule.git
Is there some system environment setting or something in the gitmodule file that needs to be set? This needs to work for multiple user accounts, so I can't just hardcode my userid into the .gitmodule file.
Thanks.