node.jsgitnodegit

Clone repo with submodules using nodegit


What is the equivalent way of executing git clone --recurse-submodules git@myrepo.git with NodeGit?

I've found some manual examples of how to do it but they're quite old and I'm hoping there's a native way to do it now.


Solution

  • There's no way to do this with nodegit natively because it's not supported by the underlying library, libgit2: https://github.com/nodegit/nodegit/issues/1233#issuecomment-809717805