Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 <olsten.larck@gmail.com>
1 parent c526e25 commit aec3629

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/cli.js

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /