-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Hook doesn't work: bad fd number #1084
Labels
Comments
Hey! Thanks for reporting the issue, indeed looks related with the usage of the https://unix.stackexchange.com/questions/407798/syntax-error-bad-fd-number |
Can you try changing the shebang to:
Are you still able to reproduce the issue? |
That works |
I'll make the change and ship a fix 👍🏼 Thanks for reporting the issue |
Fixed in 8.2.2 going live now 🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Getting an error whenever i run
git commit
with the new hook.error:
.git/hooks/prepare-commit-msg: 10: Syntax error: Bad fd number
It looks like it's due to a change in the
prepare-commit-msg
script generated bygitmoji -i
.The old code it used to generate works well for me but the new one is broken.
old:
new:
I made sure to test out both the old and new hooks in several repos and the behavior is consistent.
Reproduction
I've reproduced it in bash and zsh (not that it should matter for an
sh
script). But I just rangitmoji -i
and then committed a file and it gave the error.System Info
Validations
The text was updated successfully, but these errors were encountered: