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

Hook fails with git's diff.noPrefix config #31

Open
matheustavares opened this issue Mar 24, 2023 · 1 comment
Open

Hook fails with git's diff.noPrefix config #31

matheustavares opened this issue Mar 24, 2023 · 1 comment

Comments

@matheustavares
Copy link

The apply-format script fails when this git config is set:

$ git commit -m bla
No such file or directory
The apply-format script failed.

This config removes the "a/" and "b/" prefixes from diffs. I think apply-format expects them to be there unconditionally, so the file is not found.

@hanzec
Copy link

hanzec commented Dec 12, 2023

adding "--no-prefix" and "--relative" to git diff would fix this

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

2 participants