Skip to content

Error 'HUSKY_GIT_PARAMS' is not available globally Windows 10 #2344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 4 tasks
chgara opened this issue Dec 5, 2020 · 2 comments
Closed
2 of 4 tasks

Error 'HUSKY_GIT_PARAMS' is not available globally Windows 10 #2344

chgara opened this issue Dec 5, 2020 · 2 comments

Comments

@chgara
Copy link

chgara commented Dec 5, 2020

When using husky 5.0.4 installed with yarn and defined this instruction on commit-msg file " yarn commitlint -E HUSKY_GIT_PARAMS" it give me this error when making a commit "'HUSKY_GIT_PARAMS' is not available globally"

Expected Behavior

When commit with the last version of husky and commitlint it returns the listed error

Current Behavior

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

yarn add hasky@next
yarn add all commitlint packages
yarn husky install
Put this on commit-msg file on .husky folder " yarn commitlint -E HUSKY_GIT_PARAMS"

commitlint.config.js ```js ```

Context

Your Environment

Executable Version
commitlint --version @commitlint/[email protected]
git --version 2.29.2.windows.2
node --version 15.3.0
@escapedcat
Copy link
Member

Hey @chgara , have a look at #2339 and see if this helps

@chgara
Copy link
Author

chgara commented Dec 5, 2020

Thanks it solved my issue.

@chgara chgara closed this as completed Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants