Skip to content

Commit 0831609

Browse files
author
Eli Skeggs
committed
fix: fix git show command
Previously the show command would also output the patch, and we'd run that through commitlint - it's not super problematic but it's definitely not correct either.
1 parent ed01799 commit 0831609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function lint(args, options) {
6161
}
6262

6363
async function rawCommit(hash) {
64-
const result = await execa('git', ['show', '--pretty=format:%B', hash]);
64+
const result = await execa('git', ['show', '-s', '--pretty=format:%B', hash]);
6565
return result.stdout;
6666
}
6767

0 commit comments

Comments
 (0)