feat: add --recurse-submodules to git clone

This commit is contained in:
Claudio Barca
2023-12-31 18:57:53 +01:00
committed by Chen Asraf
parent e26fe2a3d4
commit cbaf130a0c

View File

@@ -16,7 +16,7 @@ export async function getGitConfig(
const tmpPath = path.resolve(os.tmpdir(), `scaffold-config-${Date.now()}`)
return new Promise((res, reject) => {
const clone = spawn("git", ["clone", "--depth", "1", repoUrl, tmpPath])
const clone = spawn("git", ["clone", "--recurse-submodules", "--depth", "1", repoUrl, tmpPath])
clone.on("error", reject)
clone.on("close", async (code) => {