Skip to content

Commit

Permalink
fix: --recursive by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Apr 8, 2020
1 parent b1be097 commit 4c7f893
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 4c7f893

Please sign in to comment.