Skip to content

Commit 1fbab27

Browse files
committed
🐛 Update signing option argument to '-S'
Fixes #47
1 parent e160007 commit 1fbab27

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitmoji-cli",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "A gitmoji client for using emojis on commit messages.",
55
"engines": {
66
"node": ">=4"

src/gitmoji.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class GitmojiCli {
202202
let signed;
203203

204204
if (sign) {
205-
signed = '-s';
205+
signed = '-S';
206206
} else {
207207
signed = '';
208208
}

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('gitmoji', function() {
2828

2929
describe('commit', function() {
3030
it('should return the formed commit based on the input prompts', function() {
31-
gitmojiCli._commit(prompts).should.equal('git commit -s -m ":zap: Improving performance issues." -m "Refactored code. #5"');
31+
gitmojiCli._commit(prompts).should.equal('git commit -S -m ":zap: Improving performance issues." -m "Refactored code. #5"');
3232
});
3333
});
3434

@@ -63,8 +63,8 @@ describe('gitmoji', function() {
6363
});
6464

6565
describe('_isCommitSigned', function() {
66-
it('should have the signed commit flag "-s"', function() {
67-
gitmojiCli._isCommitSigned(true).should.equal('-s');
66+
it('should have the signed commit flag "-S"', function() {
67+
gitmojiCli._isCommitSigned(true).should.equal('-S');
6868
});
6969

7070
it('should not have the signed commit flag', function() {

0 commit comments

Comments
 (0)