From 516af17df024df68f3735b3332d6a79ff1ceb421 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sat, 11 Mar 2023 12:19:38 +0100 Subject: [PATCH] revert(klipper): revert changes to clone_klipper Signed-off-by: Dominik Willner --- scripts/klipper.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/scripts/klipper.sh b/scripts/klipper.sh index 5a6e289..22812c3 100644 --- a/scripts/klipper.sh +++ b/scripts/klipper.sh @@ -275,20 +275,6 @@ function clone_klipper() { repo=$(echo "${repo}" | sed -r "s/^(http|https):\/\/github\.com\///i; s/\.git$//") repo="https://github.com/${repo}" - if [[ -d ${KLIPPER_DIR} ]] - then - status_msg "Klipper already cloned, checking compatibility ..." - local current_repo=$(git -C ${KLIPPER_DIR} config --get remote.origin.url) - if [[ "${repo}" == "${current_repo}" ]] - then - git -C ${KLIPPER_DIR} stash - git -C ${KLIPPER_DIR} checkout ${branch} - git -C ${KLIPPER_DIR} pull --ff-only - klipper_clone_result="1" - return - fi - fi - [[ -z ${branch} ]] && branch="master" ### force remove existing klipper dir and clone into fresh klipper dir @@ -303,8 +289,6 @@ function clone_klipper() { print_error "Cloning Klipper from\n ${repo}\n failed!" exit 1 fi - - klipper_clone_result="0" } function create_klipper_virtualenv() {