Skip to content

Commit

Permalink
fix(commit): Handle -n alias for --no-verify appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
noahrc committed Jun 2, 2016
1 parent 4959a4a commit b37bc84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function outputChangelog (argv, cb) {
function commit (argv, newVersion, cb) {
var msg = 'committing %s'
var args = [argv.infile]
var verify = argv.verify === false ? '--no-verify ' : ''
var verify = argv.verify === false || argv.n ? '--no-verify ' : ''
if (!argv.firstRelease) {
msg += ' and %s'
args.unshift('package.json')
Expand Down
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,7 @@ describe('cli', function () {

commit('feat: first commit')
shell.exec(cliPath + ' --no-verify').code.should.equal(0)
commit('feat: second commit')
shell.exec(cliPath + ' -n').code.should.equal(0)
})
})

0 comments on commit b37bc84

Please sign in to comment.