Finalising and commiting pre-commit hooks