From e8f56106dec3c2623095f9fccaa11a04ec9a64e6 Mon Sep 17 00:00:00 2001 From: Wellington Dias Date: Sat, 31 Oct 2026 12:39:41 -0300 Subject: [PATCH] Read the MacNativeGames pin in build_xlate.py from a fetch line with the history word too. --- tools/build_xlate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_xlate.py b/tools/build_xlate.py index ac1293c5..7c8b0412 100644 --- a/tools/build_xlate.py +++ b/tools/build_xlate.py @@ -51,7 +51,7 @@ def mng_pin() -> str: """The MacNativeGames commit tools/fetch_refs.sh pins.""" for line in (ROOT / "tools" / "fetch_refs.sh").read_text(encoding="utf-8").splitlines(): f = line.split() - if len(f) == 4 and f[:2] == ["fetch", "MacNativeGames"]: + if len(f) >= 4 and f[:2] == ["fetch", "MacNativeGames"]: # a fifth word asks for the history return f[3] sys.exit("tools/fetch_refs.sh pins no MacNativeGames commit")