-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
v5 breaks the Git hook #1294
Comments
I confirmed
I'm unsure what the git hook does exactly, I guess I need some guidance here to continue debugging or to provide a fix. |
I figured out line 50 in - diff_cmd = ["git", "diff-index", "--cached", "--name-only", "--diff-filter=ACMRTUXB HEAD"]
+ diff_cmd = ["git", "diff-index", "--cached", "--name-only", "--diff-filter=ACMRTUXB", "HEAD"] However, the hook still doesn't work. It correctly passes on commiting |
I'm seeing this too. (OS X 10.15.5, python 3.8.2, git 2.27.0). In addition, we use pyenv to ensure python versions are set properly on a per project basis and I just confirmed that its using the project specific python version. This completely breaks isort for us. I've held isort back to <5 until fixed. |
Thanks @honzajavorek and @danaspiegel for raising this! Thanks! ~Timothy |
Awesome, thanks :) |
I upgraded to v5, my Git hook looks like this (the same as in README, I double checked now):
I'm getting the following error:
Using: macOS Mojave (10.14.6), Homebrew, git 2.27.0, python 3.7.7 (I hope the hook won't get executed using the system python 2.7.16)
The text was updated successfully, but these errors were encountered: