From 558265fcaca9b5fb409b0d86c60f26753920e651 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 7 Apr 2025 10:07:44 -0400 Subject: [PATCH] Simplify logic in checkout.py --- checkout.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/checkout.py b/checkout.py index 4dad742..4f444eb 100755 --- a/checkout.py +++ b/checkout.py @@ -51,13 +51,10 @@ if target_release != "master": target_release = "master" for submodule in submodules.keys(): - if target_release == "master": + if target_release == "master" or submodule == 'jellyfin-server-windows': target_head = "origin/master" else: - if submodule == "jellyfin-server-windows": - target_head = "origin/master" - else: - target_head = f"refs/tags/{target_release}" + target_head = f"refs/tags/{target_release}" # Checkout the given head and reset the working tree submodules[submodule].head.reference = target_head submodules[submodule].head.reset(index=True, working_tree=True)