From 2e995ea41ac7c7e4f9f5f947db3ea9e2dfc8cae2 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 26 Oct 2021 20:01:24 -0700 Subject: [PATCH] installer: init submodules for all builds old-commit-hash: 23d6aeb4b7063ec20fc306dd2e8803cf24eedc3e --- selfdrive/ui/installer/installer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/installer/installer.cc b/selfdrive/ui/installer/installer.cc index 68f6d10c9c..6ee6e99e09 100644 --- a/selfdrive/ui/installer/installer.cc +++ b/selfdrive/ui/installer/installer.cc @@ -176,6 +176,7 @@ void Installer::cloneFinished(int exitCode, QProcess::ExitStatus exitStatus) { assert(err == 0); run(("git checkout " + BRANCH_STR).c_str()); run(("git reset --hard origin/" + BRANCH_STR).c_str()); + run("git submodule update --init"); // move into place run("mv " TMP_INSTALL_PATH " " INSTALL_PATH); @@ -195,7 +196,6 @@ void Installer::cloneFinished(int exitCode, QProcess::ExitStatus exitStatus) { param.close(); } run("cd " INSTALL_PATH " && " - "git submodule update --init && " "git remote set-url origin --push " GIT_SSH_URL " && " "git config --replace-all remote.origin.fetch \"+refs/heads/*:refs/remotes/origin/*\""); #endif