setting the commit hooks