There doesn't appear to be a way to clone a repo with submodules. In my use case, the devcontainer is built up using files coming in from a submod, so this is critical.
It looks looks like support for this would need to be added to CloneRepoOptions in git.go. The underlying git-go options already support this, so hopefully this isn't a heavy lift. See CloneOptions.RecurseSubmodules in go-git/options.go.
Finding the above references is about the extent of my Go knowledge though, so I can't offer a patch myself.
There doesn't appear to be a way to clone a repo with submodules. In my use case, the devcontainer is built up using files coming in from a submod, so this is critical.
It looks looks like support for this would need to be added to
CloneRepoOptionsingit.go. The underlyinggit-gooptions already support this, so hopefully this isn't a heavy lift. SeeCloneOptions.RecurseSubmodulesingo-git/options.go.Finding the above references is about the extent of my Go knowledge though, so I can't offer a patch myself.