-
Notifications
You must be signed in to change notification settings - Fork 11
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
Hooks are not unescaping Quotes before executing #103
Comments
|
Thanks for the report @RefinedSoftwareLLC! Will try to take a deeper look at this one tomorrow |
As a workaround, I got grep to work by removing all quotes and escape backslashes.
|
I can't reproduce this on Linux, but will check on my Windows machine in a bit. Could you share two additional things whenever you get a chance?
$ git commit -m "foo"
Found configured hook: pre-commit
Running command: ("echo")
[master d9d19f2] foo
1 file changed, 1 insertion(+), 1 deletion(-)
|
Yes, version 0.11.1
In cmd, if you directly type |
I'm guessing the escaping is due to rust-lang/rust#29494 |
As this issue is unlikely to be fixed upstream (judging by the time it has been open for) can we fix this by using a different way of executing these commands? Afaict there is some workaround by using |
No, there's several viable, if mildly annoying, workarounds that are readily available, and we're definitely not going to dip down to |
Environment Details
Description
These fail but shouldn't:
pre-commit = "\"echo\""
pre-commit = """("echo")"""
Being unable to use quotes is preventing me from using
pre-commit = """(git status --short | grep -q "^...folder/")"""
in my logic to only compile when changes are made in my rust folder.The text was updated successfully, but these errors were encountered: