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

Husky commit-msg no longer working when using Sourcetree #734

Closed
cutterbl opened this issue Jun 8, 2020 · 2 comments
Closed

Husky commit-msg no longer working when using Sourcetree #734

cutterbl opened this issue Jun 8, 2020 · 2 comments

Comments

@cutterbl
Copy link

cutterbl commented Jun 8, 2020

I realize this one might be a little odd, but...

We have multiple husky hooks setup. We use Sourcetree, from Atlassian, as a GUI interface to git. This has worked fine for us in the past, and suddenly does not. Not sure why, but none of our hooks are firing, when doing commits in Sourcetree. I have verified that everything still works fine if I'm working strictly in terminal.

Husky 4.2.5
Git 2.20.1 (Apple Git-117)
Node 10.18.0 (nvm default, for some time now)
NPM 6.13.4 (nvm default, for some time now)
Sourcetree 4.0.1 (234)
git-branch-is 3.1.0

We have a simple setup

"husky": {
    "hooks": {
      "pre-push": "if git-branch-is master; then npm lint; fi",
      "commit-msg": "if git-branch-is master; then commitlint -E HUSKY_GIT_PARAMS; fi"
    }
  },

Neither hooks, when driving with Sourcetree. Both work fine, when driving directly in the Terminal.

@tenadolanter
Copy link

Switching to husky 3.1.0 (which uses run-node) also worked for me
#639

@andorfermichael
Copy link

#820 worked for me

@typicode typicode closed this as completed Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants