In a git repository R I have a submodule that I initialized with the following command:
git submodule add git@mygitserver...
Now a user just cloned R using https
and get an error when running
git submodule init
git submodule update
because he doesn't have ssh (with public key uploaded on the server) access.
So my question is, is it possible to create a submodule that will automatically uses the same protocol than the one used to clone the parent repository on the git submodule update
command ?