From 7ff4e45c86deb5f15ffd3cc67bdb9e9d710c5ebe Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:57:50 +0000 Subject: [PATCH] fix more tests --- bert_e/jobs/delete_queues.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bert_e/jobs/delete_queues.py b/bert_e/jobs/delete_queues.py index e2eab2ca..ef2c1a8d 100644 --- a/bert_e/jobs/delete_queues.py +++ b/bert_e/jobs/delete_queues.py @@ -48,8 +48,12 @@ def delete_queues(job: DeleteQueuesJob): if not queue_branches: raise exceptions.JobSuccess() - # Checkout latest development to delete queue branches. - queue_branches[0].dst_branch.checkout() + + queue_branch = queue_branches[0] + if queue_branch.minor is None: + repo.checkout(f"development/{queue_branch.major}") + else: + repo.checkout(f"development/{queue_branch.major}.{queue_branch.minor}") for branch in queue_branches: branch.remove(do_push=False)