diff --git a/@commitlint/read/src/get-edit-file-path.ts b/@commitlint/read/src/get-edit-file-path.ts index d90ac6b7b3..1d80d00fc9 100644 --- a/@commitlint/read/src/get-edit-file-path.ts +++ b/@commitlint/read/src/get-edit-file-path.ts @@ -12,7 +12,7 @@ export async function getEditFilePath( } const dotgitPath = path.join(top, '.git'); - const dotgitStats: Stats = await fs.lstat(dotgitPath); + const dotgitStats: Stats = await fs.stat(dotgitPath); if (dotgitStats.isDirectory()) { return path.join(top, '.git/COMMIT_EDITMSG');