Skip to content

Commit 9915ea0

Browse files
committed
fix(message): using single commit message array, not just string, fixes #61
1 parent 1d5b1ce commit 9915ea0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/pre-git.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,15 @@ function getWizardName() {
270270
log('using wizard name', config.wizard);
271271
return config.wizard;
272272
}
273-
if (check.unemptyString(config['commit-msg'])) {
274-
log('using config commit-msg property', config['commit-msg']);
275-
return config['commit-msg'];
273+
274+
const value = config['commit-msg'];
275+
if (check.unemptyString(value)) {
276+
log('using config commit-msg property', value);
277+
return value;
278+
}
279+
if (check.array(value) && value.length === 1) {
280+
log('using config commit-msg single value', value);
281+
return value[0];
276282
}
277283
}
278284

0 commit comments

Comments
 (0)