From d38c843574ee5221a8a11766e348354f203da938 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 2 Oct 2019 11:52:14 +0300 Subject: [PATCH] Fixed an issue when installing a package using custom Git tag and submodules were not updated correctly // Resolve #3060 --- HISTORY.rst | 1 + platformio/vcsclient.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 213c54f5..62d41eaa 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -24,6 +24,7 @@ PlatformIO Core 4.0 * Fixed an issue with project generator for `CLion IDE `__ when 2 environments were used (`issue #2824 `_) * Fixed default PIO Unified Debugger configuration for `J-Link probe `__ * Fixed an issue when configuration file options partly ignored when using custom ``--project-conf`` (`issue #3034 `_) +* Fixed an issue when installing a package using custom Git tag and submodules were not updated correctly (`issue #3060 `_) 4.0.3 (2019-08-30) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/vcsclient.py b/platformio/vcsclient.py index 468a4d0a..4267ef3c 100644 --- a/platformio/vcsclient.py +++ b/platformio/vcsclient.py @@ -164,7 +164,8 @@ class GitClient(VCSClientBase): args += [self.remote_url, self.src_dir] assert self.run_cmd(args) if is_commit: - return self.run_cmd(["reset", "--hard", self.tag]) + assert self.run_cmd(["reset", "--hard", self.tag]) + return self.run_cmd(["submodule", "update", "--init", "--recursive"]) return True def update(self):