You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to create a commit formatted with cz and check that it's done correctly with a husky hook (pre-commit).
Current Behavior
When I use pnpm gitcommit (cz), I have the right prompt but I have this issue after I filled it
[Error: ENOENT: no such file or directory, open 'C:\<PROJECT_PATH>\.git\COMMIT_EDITMSG'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\<PROJECT_PATH>\\.git\\COMMIT_EDITMSG'
}
Node.js v18.12.1
husky - pre-commit hook exited with code 1 (error)
git exited with error code 1
And if the file exists the hook will validate its content (not the commit currently being created)
Since I switched to pnpm, cz won't update COMMIT_EDITMSG before the hook is triggered
Expected Behavior
We should be able to create a commit formatted with cz and check that it's done correctly with a husky hook (pre-commit).
Current Behavior
When I use pnpm gitcommit (cz), I have the right prompt but I have this issue after I filled it
And if the file exists the hook will validate its content (not the commit currently being created)
Since I switched to pnpm, cz won't update COMMIT_EDITMSG before the hook is triggered
Affected packages
Possible Solution
Steps to Reproduce
Context
My configuration:
How I configured cz:
Husky pre-commit:
commitlint --version
@commitlint/cli: "^17.4.4",
git --version
git version 2.37.3.windows.1
node --version
v16.17.0
The text was updated successfully, but these errors were encountered: