Clone repo with submodules using nodegit

68 Views Asked by At

What is the equivalent way of executing git clone --recurse-submodules [email protected] 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.

1

There are 1 best solutions below

0
Paymahn Moghadasian On BEST ANSWER

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