Commit 4f988524 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Revert "update branches for real…"

This reverts commit 427e3f38.
parent 427e3f38
......@@ -247,8 +247,9 @@ class Project(Links, NamedModel, TimeStampedModel):
})
if created:
repo.api_update()
instance, _ = Branch.objects.get_or_create(name=branch, project=self, repo=repo)
instance.update(pull=pull)
instance, bcreated = Branch.objects.get_or_create(name=branch, project=self, repo=repo)
if bcreated:
instance.update(pull=pull)
def checkout(self):
self.main_branch().git().checkout()
......
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