mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 04:55:56 +00:00
Read the MacNativeGames pin in build_xlate.py from a fetch line with the history word too.
This commit is contained in:
1 parent
8f6664d758
commit
e8f56106de
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user