'Projects that exist with repository URL already'

def matches(self, user):

    fuzzy_url = self.clone_url.replace('git://', '').replace('.git', '')
    projects = Project.objects.public(user).filter(((Q(repo=self.clone_url) | Q(repo__iendswith=fuzzy_url)) | Q(repo__iendswith=(fuzzy_url + '.git'))))
    return [{'id': project.slug, 'url': reverse('projects_detail', kwargs={'project_slug': project.slug})} for project in projects]
