Only check git if repo exists.