Skip to content

Commit 78d1edc

Browse files
committed
fix: use --pretty=format:"%B" instead of --pretty=%B
The latter adds unnecessary whitespace at the end of the commit msg.
1 parent 06a3ed8 commit 78d1edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@commitlint/read/src/read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default async function getCommitMessages(
2626
}
2727

2828
if (last) {
29-
const executeGitCommand = await execa('git', ['log', '-1', '--pretty=%B']);
29+
const executeGitCommand = await execa('git', ['log', '-1', '--pretty=format:"%B"']);
3030
return [executeGitCommand.stdout];
3131
}
3232

0 commit comments

Comments
 (0)