lefthook | Fast and powerful Git hooks manager for any type | Frontend Utils library
kandi X-RAY | lefthook Summary
kandi X-RAY | lefthook Summary
The fastest polyglot Git hooks manager out there. Fast and powerful Git hooks manager for Node.js, Ruby or any other type of projects. Read the introduction post.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lefthook
lefthook Key Features
lefthook Examples and Code Snippets
Community Discussions
Trending Discussions on lefthook
QUESTION
I switched from GitHub Desktop to Sourcetree due to some missing feature.
On my flutter project, I installed LeftHook to execute a linter when someone commits something.
On GitHub Desktop, Lefthook works well, but when I try to commit from SourceTree, the error sh: flutter: command not found
I can't understand why. The flutter SDK path is set globally correctly (i can use flutter commands in every terminal)
...ANSWER
Answered 2022-Feb-10 at 11:46Problem solved!
Seems like that Sourcetree isn't capable to access to the PATH
in witch flutter is contained (the one added in the file .zshrc).
So the solution is to add the export in every hook that lefthook uses,
something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lefthook
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page