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
I have setup this package following the instructions and have the wizard running. This uses husky and the prepare-commit-message hook runs exec < /dev/tty && npx --no-install git-cz --hook || true.
Then the commit-msg hook runs npx --no -- commitlint --edit "\${1}" to lint the commit message.
The trouble i'm facing is that every time i complete the wizard i'm dumped back into the vim in what looks like the COMMIT_EDITMSG git hook asking me to enter a commit message, and have to :q to exit which is annoying. Linting then runs after this as expected.
Steps to reproduce:
Run git commit -a in terminal
Proceed through wizard and choose Yes to the confirmCommit message.
Vim starts, :q to exit
Linting runs.
If i comment out the linting stage i do not enter the COMMIT_EDITMSG hook, so from what i can tell, this opens because the --edit flag of Commitlint says: read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG so looking at my lint command npx --no -- commitlint --edit "\${1}" - is the path/file not being passed correctly from cz to commitlint?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Hoping for a bit of guidance,
I have setup this package following the instructions and have the wizard running. This uses husky and the
prepare-commit-message
hook runsexec < /dev/tty && npx --no-install git-cz --hook || true
.Then the
commit-msg
hook runsnpx --no -- commitlint --edit "\${1}"
to lint the commit message.Relevant package versions:
The trouble i'm facing is that every time i complete the wizard i'm dumped back into the vim in what looks like the
COMMIT_EDITMSG
git hook asking me to enter a commit message, and have to:q
to exit which is annoying. Linting then runs after this as expected.Steps to reproduce:
git commit -a
in terminalYes
to theconfirmCommit
message.:q
to exitIf i comment out the linting stage i do not enter the
COMMIT_EDITMSG
hook, so from what i can tell, this opens because the--edit
flag of Commitlint says:read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG
so looking at my lint commandnpx --no -- commitlint --edit "\${1}"
- is the path/file not being passed correctly from cz to commitlint?Thanks
The text was updated successfully, but these errors were encountered: