Check for a git repo before processing