From c2970631a5c4365efc2c5d4d3c40cd5feb905a88 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 2 Oct 2019 12:34:20 +0300 Subject: [PATCH] Add "--force" for git update // Issue #3060 --- platformio/vcsclient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio/vcsclient.py b/platformio/vcsclient.py index 4267ef3c..56291966 100644 --- a/platformio/vcsclient.py +++ b/platformio/vcsclient.py @@ -165,7 +165,9 @@ class GitClient(VCSClientBase): assert self.run_cmd(args) if is_commit: assert self.run_cmd(["reset", "--hard", self.tag]) - return self.run_cmd(["submodule", "update", "--init", "--recursive"]) + return self.run_cmd( + ["submodule", "update", "--init", "--recursive", "--force"] + ) return True def update(self):