We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc575fa commit 83b1a47Copy full SHA for 83b1a47
@commitlint/read/src/index.js
@@ -61,7 +61,7 @@ async function getEditFilePath(top, edit) {
61
} else {
62
const gitFile = await sander.readFile(dotgitPath, 'utf8');
63
const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', '');
64
- editFilePath = path.join(top, relativeGitPath, 'COMMIT_EDITMSG');
+ editFilePath = path.resolve(top, relativeGitPath, 'COMMIT_EDITMSG');
65
}
66
67
0 commit comments