inject pre-commit hook