From 9b38590c60bb3cbb6fb64532f09f9284a001e9e3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 26 Jun 2023 14:29:00 +0200 Subject: [PATCH] Add init & update of submodules for Coloquinte 2. --- bootstrap/socInstaller.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrap/socInstaller.py b/bootstrap/socInstaller.py index f9c381dd..cf4305da 100755 --- a/bootstrap/socInstaller.py +++ b/bootstrap/socInstaller.py @@ -284,6 +284,16 @@ class GitRepository ( object ): Command( [ 'git', 'checkout', branch ], self.fdLog ).execute() return + def submoduleInit ( self ): + os.chdir( self.localRepoDir ) + Command( [ 'git', 'submodule', 'init' ], self.fdLog ).execute() + return + + def submoduleUpdate ( self ): + os.chdir( self.localRepoDir ) + Command( [ 'git', 'submodule', 'update' ], self.fdLog ).execute() + return + class Configuration ( object ): @@ -601,6 +611,8 @@ try: if conf.rmSource: gitCoriolis.removeLocalRepo() gitCoriolis.clone () gitCoriolis.checkout( 'devel' ) + gitCoriolis.submoduleInit() + gitCoriolis.submoduleUpdate() if conf.rmSource: gitBenchs.removeLocalRepo() gitBenchs.clone()