checking if git repo and doing other 'good thing'