Skip to content

Commit aec3629

Browse files
author
Charlike Mike Reagent
committed
fix(cli): pass additional flags directly to "git commit" command
Signed-off-by: Charlike Mike Reagent <[email protected]>
1 parent c526e25 commit aec3629

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ app
4646
.then((answers) => {
4747
const answer = answers.reduce((acc, x) => Object.assign({}, acc, x), {});
4848
const args = gitcommit(answer);
49-
const command = ['git commit'].concat(args).join(' ');
49+
const command = ['git commit']
50+
.concat(process.argv.slice(2))
51+
.concat(args)
52+
.join(' ');
5053

5154
return execa.shell(command);
5255
}, onerror)

0 commit comments

Comments
 (0)