We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e47985 commit a63207bCopy full SHA for a63207b
@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, {encoding: 'utf-8'});
+ const gitFile = await sander.readFile(dotgitPath, 'utf8');
63
const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', '');
64
editFilePath = path.resolve(top, relativeGitPath, 'COMMIT_EDITMSG');
65
}
0 commit comments