Add condition when no repository.