Read the MacNativeGames pin in build_xlate.py from a fetch line with the history word too.

This commit is contained in:
Wellington Dias committed 2026-10-31 12:39:41 -03:00
1 parent 8f6664d758
commit e8f56106de
1 file changed
+1 -1
+1 -1
View File
@@ -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")