Delete remote repository relation on sync without filtering with projects
@@ -203,10 +203,7 @@ class Service:
repository_full_names = [r.full_name for r in all_remote_repositories if r is not None]
(
self.user.remote_repository_relations
- .exclude(
- Q(remoterepository__full_name__in=repository_full_names) |
- Q(remoterepository__project__isnull=False)
- )
+ .exclude(remoterepository__full_name__in=repository_full_names)
.filter(account=self.account)
.delete()
)
