Have hook exit if not in a git repo