Validate that we are in a git repo before any action is run