diff --git a/package.json b/package.json index 20c580981f..5053fe15e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gitmoji-cli", - "version": "1.5.2", + "version": "1.5.3", "description": "A gitmoji client for using emojis on commit messages.", "engines": { "node": ">=4" diff --git a/src/gitmoji.js b/src/gitmoji.js index 3152808a7d..a4380ead53 100644 --- a/src/gitmoji.js +++ b/src/gitmoji.js @@ -202,7 +202,7 @@ class GitmojiCli { let signed; if (sign) { - signed = '-s'; + signed = '-S'; } else { signed = ''; } diff --git a/test/test.js b/test/test.js index c9dcc1ea97..798319a06b 100644 --- a/test/test.js +++ b/test/test.js @@ -28,7 +28,7 @@ describe('gitmoji', function() { describe('commit', function() { it('should return the formed commit based on the input prompts', function() { - gitmojiCli._commit(prompts).should.equal('git commit -s -m ":zap: Improving performance issues." -m "Refactored code. #5"'); + gitmojiCli._commit(prompts).should.equal('git commit -S -m ":zap: Improving performance issues." -m "Refactored code. #5"'); }); }); @@ -63,8 +63,8 @@ describe('gitmoji', function() { }); describe('_isCommitSigned', function() { - it('should have the signed commit flag "-s"', function() { - gitmojiCli._isCommitSigned(true).should.equal('-s'); + it('should have the signed commit flag "-S"', function() { + gitmojiCli._isCommitSigned(true).should.equal('-S'); }); it('should not have the signed commit flag', function() {