This worked for me, but haven’t tested with a remote eg. github:
url = "git+file:///PATH?submodules=1";