[Build] Make sure to pull latest from patches and optimized settings

This commit is contained in:
Herman S.
2025-11-10 21:45:37 +09:00
parent b2f55aa103
commit dce39db98c
3 changed files with 15 additions and 2 deletions
+13
View File
@@ -568,6 +568,7 @@ def get_pr_number():
def git_submodule_update():
"""Runs a git submodule init and update.
"""
# First, update all submodules to their recorded commits
shell_call([
"git",
"-c",
@@ -579,6 +580,18 @@ def git_submodule_update():
"-j", f"{os.cpu_count()}",
])
# Then update only submodules that track branches to their latest
# Currently: optimized-settings and game-patches track 'main'
for submodule in ["third_party/optimized-settings", "third_party/game-patches"]:
shell_call([
"git",
"submodule",
"update",
"--remote",
"--depth=1",
submodule
])
def get_cc(cc=None):
if sys.platform == "linux":