Skip to content

Commit 13dd2c4

Browse files
thesmiley1bcoe
andauthored
fix: normalize git show signature option to false (#671)
This disables `git log` showing signatures (`--no-show-signature`) unless `showSignature` is set to a truthy value. This way differences in developers` local configuration (`log.showSignature`) do not affect tooling operation. Callers of `gitRawCommits` will need to explicitly request signatures (via `rawGitOpts`) if they are desired, instead of the current behavior of the presence of signatures being undefined. Fixes conventional-changelog/commitlint#2118 Co-authored-by: Benjamin E. Coe <[email protected]>
1 parent 379560e commit 13dd2c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/git-raw-commits/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function normalizeGitOpts (gitOpts) {
1919
gitOpts = gitOpts || {}
2020
gitOpts.format = gitOpts.format || '%B'
2121
gitOpts.from = gitOpts.from || ''
22+
gitOpts.showSignature = gitOpts.showSignature || false
2223
gitOpts.to = gitOpts.to || 'HEAD'
2324
return gitOpts
2425
}

0 commit comments

Comments
 (0)