Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Aug 7, 2024
1 parent 7a2b6f0 commit 7ff4e45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bert_e/jobs/delete_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ff4e45

Please sign in to comment.