Commit 40869dbe authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Project.cmake in Project.update

parent 1f9d2ed4
Pipeline #912 passed with stages
in 50 seconds
......@@ -199,7 +199,6 @@ class Project(Links, NamedModel, TimeStampedModel):
instance, bcreated = Branch.objects.get_or_create(name=branch, project=self, repo=repo)
if bcreated:
instance.update(pull=pull)
self.cmake()
def main_branch(self):
heads = self.git().heads
......@@ -252,6 +251,7 @@ class Project(Links, NamedModel, TimeStampedModel):
self.updated = robotpkg.updated
else:
self.updated = max(branch.updated, robotpkg.updated)
self.cmake()
self.save()
def commits_since(self):
......
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