Fixed an issue when installing a package using custom Git tag and submodules were not updated correctly // Resolve #3060

This commit is contained in:
Ivan Kravets
2019-10-02 11:52:14 +03:00
parent a2213a1aa4
commit d38c843574
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ PlatformIO Core 4.0
* Fixed an issue with project generator for `CLion IDE <http://docs.platformio.org/page/ide/clion.html>`__ when 2 environments were used (`issue #2824 <https://github.com/platformio/platformio-core/issues/2824>`_)
* Fixed default PIO Unified Debugger configuration for `J-Link probe <http://docs.platformio.org/page/plus/debug-tools/jlink.html>`__
* Fixed an issue when configuration file options partly ignored when using custom ``--project-conf`` (`issue #3034 <https://github.com/platformio/platformio-core/issues/3034>`_)
* Fixed an issue when installing a package using custom Git tag and submodules were not updated correctly (`issue #3060 <https://github.com/platformio/platformio-core/issues/3060>`_)
4.0.3 (2019-08-30)
~~~~~~~~~~~~~~~~~~

View File

@ -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):