From 1fbab27540c3011bea9ce73debdaa848d79ec20a Mon Sep 17 00:00:00 2001 From: Carlos Cuesta Date: Fri, 5 May 2017 20:14:14 +0200 Subject: [PATCH] :bug: Update signing option argument to '-S' Fixes #47 --- package.json | 2 +- src/gitmoji.js | 2 +- test/test.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 20c580981..5053fe15e 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 3152808a7..a4380ead5 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 c9dcc1ea9..798319a06 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() {