Commit 7276134c authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

main branches: on main repo

parent c84fe536
Pipeline #998 passed with stages
in 55 seconds
...@@ -185,7 +185,7 @@ class Project(Links, NamedModel, TimeStampedModel): ...@@ -185,7 +185,7 @@ class Project(Links, NamedModel, TimeStampedModel):
for branch in branches: for branch in branches:'update branch {branch}')'update branch {branch}')
if branch in MAIN_BRANCHES: if branch in MAIN_BRANCHES:
instance, bcreated = Branch.objects.get_or_create(name=branch, project=self) instance, bcreated = Branch.objects.get_or_create(name=branch, project=self, repo=self.main_repo())
else: else:
if branch.startswith('remotes/'): if branch.startswith('remotes/'):
branch = branch[8:] branch = branch[8:]
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