Skip to content

Commit

Permalink
fix: fix git show command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Eli Skeggs committed Nov 4, 2019
1 parent ed01799 commit 0831609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function lint(args, options) {
}

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

Expand Down

0 comments on commit 0831609

Please sign in to comment.