Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli-test-utils): use --no-git when initGit option is false #4224

Merged
merged 1 commit into from Jul 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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