You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pre-push hook was removed, but Git doesn't propagate hooks so you must run rm .git/hooks/pre-push.sh. Sorry about that.
I just fixed the pre-commit in main (#11) so it only applies to staged files unless everything is staged, and can also auto-format the staged files instead of just throwing an error. I kept it so that it formats everything if everything is staged (even non-committed files) because it's apparently recommended, and spotless already caches so that it shouldn't be slower unless something mis-formatted is already comitted (see diffplug/spotless#178).
The git hooks perform checks and tests on changes they are not supposed to check.
The pre-commit one should only perform checks (such as the formatting one) on the files added to the staging area.
The pre-push should perform checks and tests on the last commit, not on changes that have not been committed.
The text was updated successfully, but these errors were encountered: