From c3b4753cc1b7b386001e42202f912ae55d60b054 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 21 Feb 2021 01:30:47 +0100 Subject: [PATCH] Blow up on Jenkins build if engine version is not a tag. Fixes #3347 --- Tools/gen_build_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/gen_build_info.py b/Tools/gen_build_info.py index 5fc8f5f733..e5368d4716 100755 --- a/Tools/gen_build_info.py +++ b/Tools/gen_build_info.py @@ -50,7 +50,7 @@ def generate_manifest(dir: str) -> str: def get_engine_version() -> str: - proc = subprocess.run(["git", "describe", "--tags", "--abbrev=0"], stdout=subprocess.PIPE, cwd="RobustToolbox", check=True, encoding="UTF-8") + proc = subprocess.run(["git", "describe", "--exact-match", "--tags", "--abbrev=0"], stdout=subprocess.PIPE, cwd="RobustToolbox", check=True, encoding="UTF-8") tag = proc.stdout.strip() assert tag.startswith("v") return tag[1:] # Cut off v prefix.