We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7e4e68 commit 71509c4Copy full SHA for 71509c4
@commitlint/read/src/index.js
@@ -59,7 +59,7 @@ async function getEditFilePath(top, edit) {
59
if (dotgitStats.isDirectory()) {
60
editFilePath = path.join(top, '.git/COMMIT_EDITMSG');
61
} else {
62
- const gitFile = await sander.readFile(dotgitPath, 'utf8');
+ const gitFile = await sander.readFile(dotgitPath, { encoding: 'utf-8' });
63
const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', '');
64
editFilePath = path.resolve(top, relativeGitPath, 'COMMIT_EDITMSG');
65
}
0 commit comments