Skip to content

Commit 8f03f6a

Browse files
committed
fix: git init in sao.js
1 parent 6dc424e commit 8f03f6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sao.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ module.exports = {
2929
'gitignore': '.gitignore'
3030
},
3131
showTip: true,
32-
gitInit: (answers) => answers.gitInit,
32+
gitInit: false,
3333
installDependencies: false,
3434
npmInstall: false,
3535
post (ctx) {
3636
if (ctx.answers.gitInit) {
3737
[
38+
['git', ['init']],
3839
['git', ['checkout', '-b', 'dev']],
3940
['git', ['add', '.']],
4041
['git', ['commit', '-m', 'feat: initial commit']]

0 commit comments

Comments
 (0)