From 1557dfea77efc87328db21b4d6114eac0996b298 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 31 Aug 2022 08:10:27 -0300 Subject: [PATCH] [Diff][Fixed] Problems with git submodules - Now we force a submodules update during checkout Related to #265 --- kibot/out_diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/out_diff.py b/kibot/out_diff.py index 50ea9972..30c193b4 100644 --- a/kibot/out_diff.py +++ b/kibot/out_diff.py @@ -144,7 +144,7 @@ class DiffOptions(BaseOptions): def undo_git(self): if self.checkedout: logger.debug('Restoring point '+self.branch) - self.run_git(['checkout', self.branch]) + self.run_git(['checkout', '--recurse-submodules', self.branch]) if self.stashed: logger.debug('Restoring changes') # We don't know if we stashed anything (push always returns 0) @@ -201,7 +201,7 @@ class DiffOptions(BaseOptions): # Checkout the target name = self.solve_git_name(name) logger.debug('Changing to '+name) - self.run_git(['checkout', name]) + self.run_git(['checkout', '--recurse-submodules', name]) self.checkedout = True # Populate the cache hash = self.cache_file()