From ee12876350509822e4544d37eac2ddfbb825e345 Mon Sep 17 00:00:00 2001
From: Patrick Wuttke
Date: Fri, 4 Jul 2025 14:50:03 +0200
Subject: [PATCH] Changed how init_project.py detects if S++ has been updated.
---
tools/init_project.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/init_project.py b/tools/init_project.py
index d8a27df..8807fc2 100644
--- a/tools/init_project.py
+++ b/tools/init_project.py
@@ -44,11 +44,12 @@ def update_spp() -> None:
try:
exec_checked(['git', 'fetch', 'origin', 'master'])
exec_checked(['git', 'checkout', 'master'])
- output = exec_get_output(['git', 'status', '--porcelain'])
- if output.strip() == '':
- return
+ exec_checked(['git', 'pull'])
finally:
os.chdir(_root)
+ output = exec_get_output(['git', 'status', '--porcelain'])
+ if output.strip() == '':
+ return
_logger.info('Changes in SCons++ detected, creating commit.')
exec_checked(['git', 'commit', '-m', 'Updated Scons++', 'external/scons-plus-plus'])