- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 934
[windows] some hooks are tried to be executed even if there is no such a file #771
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
Comments
This is not true - it checks for accessibility inside that function. Even though this ticket is closed, please feel free to state the underlying problem so people can chime in and help. |
That's strange. Windows 7, 32-bit. On |
It is strange indeed. If you can provide a simple python script that reproduces the issue, it truly is a bug worth fixing. Might just be very special behaviour on a OS whose tests are known to be broken for GitPython. |
If anyone is still following this, I had a similar error to this, but with run_commit_hook('post-commit', self) instead of pre-commit. What I have done to fix the error is to convert the post-commit file in .git folder to a .bat file. The error of the system complaining that the file is not a Win32 application comes from the fact that Windows doesn't like executing files. This resolution seems a little hacky to me, so if anyone has a better solution that would be great. |
I have reopened the issue on account of this seemingly happening on windows, which by now is an entirely untested platform, unfortunately. Until there is a fix, one might try to use the |
For example
GitPython/git/index/base.py
Line 941 in 0857d33
May be the cause of 703
The text was updated successfully, but these errors were encountered: