I have a project which contains submodules as shown here.
[submodule "repo-a"]
path = repo-a
url = https://example.com/scm/repo-a.git
[submodule "repo-b"]
path = repo-b
url = https://example.com/scm/repo-b.git
[submodule "repo-c"]
path = repo-c
url = https://example.com/scm/repo-c.git
I am using go-git pkg and trying to clone with options as shown here,
cloneOpts := &git.CloneOptions{
URL: url,
RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
}
It does not recursively pull the submodules. I see only empty directories. Am I missing something?