checks if repo is dirty