Commit 2319683f authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix CI

parent b2b8f537
Pipeline #14762 failed with stage
in 55 seconds
...@@ -339,9 +339,11 @@ class Project(Links, NamedModel, TimeStampedModel): ...@@ -339,9 +339,11 @@ class Project(Links, NamedModel, TimeStampedModel):
branch = str(self.main_branch()).split('/', maxsplit=2)[2] branch = str(self.main_branch()).split('/', maxsplit=2)[2]
self.git().head.commit = self.git().remotes[self.main_repo().git_remote()].refs[branch].commit self.git().head.commit = self.git().remotes[self.main_repo().git_remote()].refs[branch].commit
def main_gitlab_repo(self):
return self.repo_set.get(forge__source=SOURCES.gitlab, namespace=self.main_namespace)
def ci_jobs(self): def ci_jobs(self):
if self.main_forge.source == SOURCES.gitlab: self.main_gitlab_repo().get_jobs_gitlab()
self.main_repo().get_jobs_gitlab()
def update(self, only_main_branches=True): def update(self, only_main_branches=True):
if self.main_namespace is None: if self.main_namespace is None:
......
Markdown is supported
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