We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A space in the the path containing lefthook will cause it to fail.
1.2.6 7fa22dd
mkdir "my project"
cd "my project"
git init
npm install @evilmartians/lefthook
npx lefthook install
echo "# hello" > readme.md
git add readme.md
git commit
lefthook should run
.git/hooks/prepare-commit-msg: line 21: /Users/username/my: No such file or directory
Surround all eval functions with $dir in additional quotes.
The text was updated successfully, but these errors were encountered:
fix: Double quote eval statements with $dir (#404)
b05b393
Co-authored-by: Justin Foell <[email protected]> Closes #403
Successfully merging a pull request may close this issue.
🔧 Summary
A space in the the path containing lefthook will cause it to fail.
Lefthook version
1.2.6 7fa22dd
Steps to reproduce
mkdir "my project"
cd "my project"
git init
npm install @evilmartians/lefthook
npx lefthook install
echo "# hello" > readme.md
git add readme.md
git commit
Expected results
lefthook should run
Actual results
.git/hooks/prepare-commit-msg: line 21: /Users/username/my: No such file or directory
Possible Solution
Surround all eval functions with $dir in additional quotes.
Screenshots (if appropriate)
The text was updated successfully, but these errors were encountered: