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
Fails when force pushing unrelated histories #2002
Comments
I can't reproduce, please provide an example as force pushing is working fine for me |
The forced push is on unrelated heads and so git cannot get the difference. Below is my output...
|
ah yeah if you're force pushing unrelated histories then that'll happen -- I'm not sure there's much that could be done in that case since it's really "push everything" |
hmmm actually I still can't reproduce -- what version of |
Thanks. The fix works for me. |
pre-commit looks to find difference between remote and local branches as pre-commit wants to know the files changed. But in case of force, git correctly fails to generate diff.
Expected: pre-commit can run all the hooks that has pass-filename=false as they do not require diffs.
Thanks for the awesome stuff!
The text was updated successfully, but these errors were encountered: