Skip to content

cant work by local setup #782

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
4 tasks
xxholly32 opened this issue Sep 10, 2019 · 2 comments
Closed
4 tasks

cant work by local setup #782

xxholly32 opened this issue Sep 10, 2019 · 2 comments

Comments

@xxholly32
Copy link

Expected Behavior

my demo repo

cont commit with commit info "first commit"

Current Behavior

it works

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

i was follow the steps

commitlint.config.js ```js module.exports = {extends: ['@commitlint/config-conventional']}; ```

Context

Your Environment

Executable Version
commitlint --version 8.1.0
git --version 2.21.0
node --version 10.15.0
@escapedcat
Copy link
Member

I cloned your repo, did npm install and it worked for me:

/cz-demo   master  vi foo.txt
/cz-demo   master ●  git add foo.txt
/cz-demo   master ✚  git commit -m 'rest2'

husky > commit-msg (node v10.15.3)
⧗   input: rest2
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

husky > commit-msg hook failed (add --no-verify to bypass)

@xxholly32
Copy link
Author

i find out husky need git version >= 2.13.2 .

i just upgraded my git. and reinstall husky , problem solved

i wrote my git version was wrong my bad.

but i think version support should be Keep up with husky

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