Commit b7e084a9 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Repo: ignore update of projects without a main namespace

parent ce145270
Pipeline #2036 passed with stages
in 49 seconds
......@@ -12,9 +12,8 @@ from django.template.loader import get_template
from django.utils.dateparse import parse_datetime
from django.utils.safestring import mark_safe
import requests
import git
import requests
from autoslug import AutoSlugField
from ndh.models import Links, NamedModel, TimeStampedModel
from ndh.utils import enum_to_choices, query_sum
......@@ -546,6 +545,8 @@ class Repo(TimeStampedModel):
def update(self, pull=True):
ok = True
if self.project.main_namespace is None:
if pull:
ok = self.fetch()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment