From c06ddb81afd330f1bc5250be9ffc1991759b9f7b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 31 May 2024 22:47:30 -0400 Subject: [PATCH] should add if does not exist --- selfdrive/ui/qt/text.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/text.cc b/selfdrive/ui/qt/text.cc index 15b5d3d726..e4446fcb80 100644 --- a/selfdrive/ui/qt/text.cc +++ b/selfdrive/ui/qt/text.cc @@ -51,11 +51,11 @@ int main(int argc, char *argv[]) { const std::string to_home_dir = "cd /data/openpilot"; const std::string check_remote = "git remote | grep origin-update"; const std::string reset_remote = "git remote remove origin-update && git remote add origin-update " + git_remote; - const std::string update_remote = "git remote set-url origin-update " + git_remote; + const std::string add_remote = "git remote add origin-update " + git_remote; const std::string fetch_remote = "git fetch origin-update " + git_branch; const std::string reset_branch = "git reset --hard origin-update/" + git_branch; - std::string remote_cmd = update_remote; + std::string remote_cmd = add_remote; if (!std::system((to_home_dir + " && " + check_remote).c_str())) { remote_cmd = reset_remote; }