maint: sync pre-commit script with git's