From 227f7aa35bcd920712f722387b9901983e033c15 Mon Sep 17 00:00:00 2001 From: Sebastian M Date: Thu, 30 Nov 2023 21:17:24 +0100 Subject: [PATCH] Fix custom device release tag using 0.2.0 (#289) --- get_CustomDevices.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get_CustomDevices.py b/get_CustomDevices.py index 1e1befd3..4dab8572 100644 --- a/get_CustomDevices.py +++ b/get_CustomDevices.py @@ -3,10 +3,11 @@ Import("env") CUSTOMDEVICES_DIR = env.subst("$PROJECT_DIR/CustomDevices") +CUSTOMDEVICES_TAG = "0.2.0" if not os.path.exists(CUSTOMDEVICES_DIR): print ("Cloning Mobiflight-CustomDevices repo ... ") - env.Execute("git clone --depth 100 https://github.com/MobiFlight/MobiFlight-CustomDevices $PROJECT_DIR/CustomDevices") + env.Execute(f"git clone --depth 100 --branch {CUSTOMDEVICES_TAG} https://github.com/MobiFlight/MobiFlight-CustomDevices $PROJECT_DIR/CustomDevices") else: print ("Checking for Mobiflight-CustomDevices repo updates ... ") - env.Execute("git --work-tree=$PROJECT_DIR/CustomDevices --git-dir=$PROJECT_DIR/CustomDevices/.git pull origin main --depth 100") + env.Execute(f"git --work-tree=$PROJECT_DIR/CustomDevices --git-dir=$PROJECT_DIR/CustomDevices/.git pull origin {CUSTOMDEVICES_TAG} --depth 100")