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'])