Skip to content
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

Additional message #626

Closed
fwh1990 opened this issue Jan 7, 2020 · 4 comments
Closed

Additional message #626

fwh1990 opened this issue Jan 7, 2020 · 4 comments
Labels

Comments

@fwh1990
Copy link

fwh1990 commented Jan 7, 2020

How to dismiss message like
node_modules/.bin/husky-run pre-commit ''
and
/node_modules/.bin/husky-run prepare-commit-msg '.git/COMMIT_EDITMSG message'

My configuration is:

{
  "hooks": {
    "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  }
}

Husky version: 4.0

@wKovacs64
Copy link

Yeah, what's up with all the extra output now? Happening on Windows 10 (Git Bash) and macOS (zsh). Here's a comparison from macOS:

Husky v3.1.0

$ git commit -m "docs: update README with husky v3
husky > pre-commit (node v12.14.1)
  ↓ Stashing changes... [skipped]
    → No partially staged files found...
  ✔ Running tasks...
husky > commit-msg (node v12.14.1)
[develop 10cdd886] docs: update README with husky v3
 1 file changed, 2 insertions(+)

Husky v4.0.0

$ git commit -am "docs: update README with husky v4"
yarn run v1.21.1
$ /Users/user/husky-testing/node_modules/.bin/husky-run pre-commit ''
husky > pre-commit (node v12.14.1)
  ↓ Stashing changes... [skipped]
    → No partially staged files found...
  ✔ Running tasks...
✨  Done in 0.80s.
yarn run v1.21.1
$ /Users/user/husky-testing/node_modules/.bin/husky-run prepare-commit-msg '.git/COMMIT_EDITMSG message'
✨  Done in 0.22s.
yarn run v1.21.1
$ /Users/user/husky-testing/node_modules/.bin/husky-run commit-msg .git/COMMIT_EDITMSG
husky > commit-msg (node v12.14.1)
✨  Done in 0.71s.
yarn run v1.21.1
$ /Users/user/husky-testing/node_modules/.bin/husky-run post-commit ''
✨  Done in 0.21s.
[master 43c8c34a] docs: update README with husky v4
 1 file changed, 2 insertions(+)

@fwh1990
Copy link
Author

fwh1990 commented Jan 8, 2020

It looks strange. I just want to output error message. Current behavior looks like debug output what I don't care

@typicode typicode added the bug label Jan 8, 2020
@typicode
Copy link
Owner

typicode commented Jan 8, 2020

Thanks for the heads up, such output wasn't really intended. I'll have a look.

@typicode
Copy link
Owner

typicode commented Jan 8, 2020

I just published Husky 4.0.1 which should make things less verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants