Commit fc5221e8 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

update: don’t update stuff from archived projects

parent a2d65216
Pipeline #5722 passed with stage
in 45 seconds
......@@ -20,12 +20,12 @@ class Command(BaseCommand):
forge.get_projects()
log(f'\nUpdating all repos\n')
for repo in Repo.objects.all():
for repo in Repo.objects.exclude(project__archived=True):
log(f' {repo}')
repo.update()
log(f'\nUpdating all branches\n')
for branch in Branch.objects.all():
for branch in Branch.objects.exclude(project__archived=True):
log(f' {branch.project} - {branch}')
branch.update(pull=False)
......
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