Skip to content

Demo commit-linter Args appear empty even with commit message argument #64

Answered by alirezanet
Rvanmech asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Rvanmech,
Thank you for the feedback, you are the second person that recently mentioned having problems with macOS, unfortunately, at the moment I don't have access to my mac machine so I can not debug exactly what is wrong. But if I give you some context, I hope you can solve it.
when you commit something, Git will create a file containing your commit message and it won't pass the commit message directly to the CSX script so the first thing I would check is your commit message file path in the commit-msg hook, dotnet husky run --name "commit-message-linter" --args "$1". here the $1 is not the commit message, it is a file path you must pass to the linter. so make sure you have it. (ma…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@alirezanet
Comment options

@Rvanmech
Comment options

@Rvanmech
Comment options

@alirezanet
Comment options

@WeihanLi
Comment options

Answer selected by Rvanmech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants