From bac55988e2f7d837a77e0cfffa03978de4cf70b9 Mon Sep 17 00:00:00 2001
From: Peter van Dooren
Date: Tue, 2 Apr 2024 12:00:46 +0200
Subject: [PATCH] use ssh instead of http git urls
---
install.bash | 2 +-
setup.bash | 2 +-
setup/emc-update-impl.bash | 13 ++++++-------
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/install.bash b/install.bash
index 45dcba0..b0e3926 100644
--- a/install.bash
+++ b/install.bash
@@ -22,7 +22,7 @@ fi
# Install / update the installer / updater
if [[ ! -d $EMC_ENV_DIR ]] && [[ -z "$CI" ]]
then
- git clone https://github.com/tue-robotics/emc-env $EMC_ENV_DIR
+ git clone git@github.com:/tue-robotics/emc-env $EMC_ENV_DIR
elif [[ -n "$CI" ]]
then
mkdir -p $EMC_DIR
diff --git a/setup.bash b/setup.bash
index 7d207be..76fc74b 100644
--- a/setup.bash
+++ b/setup.bash
@@ -54,7 +54,7 @@ function emc-update
then
if [[ ! -d $EMC_ENV_DIR ]]
then
- git clone https://github.com/tue-robotics/emc-env $EMC_ENV_DIR
+ git clone git@github.com:/tue-robotics/emc-env $EMC_ENV_DIR
else
git -C $EMC_ENV_DIR pull
fi
diff --git a/setup/emc-update-impl.bash b/setup/emc-update-impl.bash
index 5f1f0b2..074af30 100755
--- a/setup/emc-update-impl.bash
+++ b/setup/emc-update-impl.bash
@@ -114,17 +114,16 @@ then
fi
# 2) Download packages
-_git_clone_or_update https://github.com/tue-robotics/emc_system "$EMC_SYSTEM_DIR"/src/emc_system
-_git_clone_or_update https://github.com/tue-robotics/catkin_lint_cmake "$EMC_SYSTEM_DIR"/src/catkin_lint_cmake
-_git_clone_or_update https://github.com/tue-robotics/emc_simulator "$EMC_SYSTEM_DIR"/src/emc_simulator
-_git_clone_or_update https://github.com/tue-robotics/geolib2 "$EMC_SYSTEM_DIR"/src/geolib2
-_git_clone_or_update https://github.com/tue-robotics/code_profiler "$EMC_SYSTEM_DIR"/src/code_profiler
-_git_clone_or_update https://github.com/husarion/rosbot_description.git "$EMC_SYSTEM_DIR"/src/rosbot_description
+_git_clone_or_update git@github.com:/tue-robotics/emc_system "$EMC_SYSTEM_DIR"/src/emc_system
+_git_clone_or_update git@github.com:/tue-robotics/catkin_lint_cmake "$EMC_SYSTEM_DIR"/src/catkin_lint_cmake
+_git_clone_or_update git@github.com:/tue-robotics/emc_simulator "$EMC_SYSTEM_DIR"/src/emc_simulator
+_git_clone_or_update git@github.com:/tue-robotics/geolib2 "$EMC_SYSTEM_DIR"/src/geolib2
+_git_clone_or_update git@github.com:/tue-robotics/code_profiler "$EMC_SYSTEM_DIR"/src/code_profiler
if [ "$ROBOT_REAL" != true ]
then
# Simbot specific packages
- _git_clone_or_update https://github.com/husarion/rosbot_description.git "$EMC_SYSTEM_DIR"/src/rosbot_description
+ _git_clone_or_update git@github.com:/husarion/rosbot_description.git "$EMC_SYSTEM_DIR"/src/rosbot_description
fi
# 3) Install dependencies