Skip to content

Commit

Permalink
fix(cli-test-utils): fix initGit option (#4224)
Browse files Browse the repository at this point in the history
fixes #4223

(cherry picked from commit 16e379d)
  • Loading branch information
solazzz authored and sodatea committed Jul 18, 2019
1 parent 745935a commit 6324444
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/@vue/cli-test-utils/createTestProject.js
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs-extra')
const path = require('path')
const execa = require('execa')

module.exports = function createTestProject (name, preset, cwd, initGit) {
module.exports = function createTestProject (name, preset, cwd, initGit = true) {
delete process.env.VUE_CLI_SKIP_WRITE

cwd = cwd || path.resolve(__dirname, '../../test')
Expand Down Expand Up @@ -48,8 +48,7 @@ module.exports = function createTestProject (name, preset, cwd, initGit) {
'--force',
'--inlinePreset',
JSON.stringify(preset),
'--git',
initGit ? 'init' : 'false'
initGit ? '--git' : '--no-git'
]

const options = {
Expand Down

0 comments on commit 6324444

Please sign in to comment.