Commit 6ef128c1 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

details

parent 0f843fa6
Pipeline #1901 passed with stages
in 45 seconds
......@@ -22,7 +22,7 @@ class Command(BaseCommand):
log(f'\nUpdating all branches\n')
for branch in Branch.objects.all():
log(f' {branch}')
log(f' {branch.project} - {branch}')
branch.update(pull=False)
log(f'\nPulling Robotpkg\n')
......
......@@ -582,10 +582,12 @@ class Branch(TimeStampedModel):
self.repo.fetch()
if self.repo != self.project.main_repo():
self.project.main_repo().fetch()
main_branch = self.project.main_branch()
if main_branch is not None:
try:
main_branch = self.project.main_branch()
self.ahead = self.get_ahead(main_branch)
self.behind = self.get_behind(main_branch)
except Branch.DoesNotExists:
pass
self.updated = self.git().commit.authored_datetime
except (git.exc.GitCommandError, IndexError):
self.deleted = True
......
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