Skip to content

Commit

Permalink
feat(gatsby-cli): allow --recursive git url (#22747)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet authored Apr 9, 2020
1 parent 1381a0b commit f4198e2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/gatsby-cli/src/init-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,14 @@ const clone = async (hostInfo: any, rootPath: string): Promise<void> => {

report.info(`Creating new site from git: ${url}`)

const args = [`clone`, ...branch, url, rootPath, `--depth=1`].filter(arg =>
Boolean(arg)
)
const args = [
`clone`,
...branch,
url,
rootPath,
`--recursive`,
`--depth=1`,
].filter(arg => Boolean(arg))

await spawnWithArgs(`git`, args)

Expand Down

0 comments on commit f4198e2

Please sign in to comment.