I have a repo with submodules. I need to access it via https.
The .gitmodules file has this format:
[submodule "submodules/sm1"]
path = submodules/sm1
url = https://bitbucket.org/WORKSPACE/REPO
So if I git submodule update --init, it asks me for a user name (which disallows this from being a non-interactive session, which is pointless)
If I put the user within the url (as mentioned in https://support.atlassian.com/bitbucket-cloud/docs/using-app-passwords/), then I can use GIT_ASKPASS to do a git clone in a scriptable way.
But I don't want to use to put a specific and concrete user within the url in a submodule.
Is there a way to keep the .gitmodules file clean without any ad-hoc username, so I can share a repo between several developers; and also, clone it with its submodules in a scriptable way? None of the previous messages work, they always end up in git complaining about not having access rights.