File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ program
39
39
. option ( '-p, --preset <presetName>' , 'Skip prompts and use saved or remote preset' )
40
40
. option ( '-d, --default' , 'Skip prompts and use default preset' )
41
41
. option ( '-i, --inlinePreset <json>' , 'Skip prompts and use inline JSON string as preset' )
42
+ . option ( '-g, --initialCommit <message>' , 'Specify initial commit message (when git is available)' )
42
43
. option ( '-m, --packageManager <command>' , 'Use specified npm client when installing dependencies' )
43
44
. option ( '-r, --registry <url>' , 'Use specified npm registry when installing dependencies (only for npm)' )
44
45
. option ( '-f, --force' , 'Overwrite target directory if it exists' )
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ module.exports = class Creator {
164
164
await run ( 'git' , [ 'config' , 'user.name' , 'test' ] )
165
165
await run ( 'git' , [ 'config' , 'user.email' , 'test@test.com' ] )
166
166
}
167
- await run ( ` git commit -m init` )
167
+ await run ( ' git' , [ ' commit' , '-m' , cliOptions . initialCommit || ' init' ] )
168
168
}
169
169
170
170
// log instructions
You can’t perform that action at this time.
0 commit comments