Check if a repository is selected and alert if not.