From 89a9d38d3974980ce78788199f5f4c065617e056 Mon Sep 17 00:00:00 2001 From: Nick Berardi Date: Mon, 1 Jan 2024 15:03:40 -0500 Subject: [PATCH] trim klipper git clone to only latest history --- scripts/klipper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/klipper.sh b/scripts/klipper.sh index 117caef..f51c50d 100644 --- a/scripts/klipper.sh +++ b/scripts/klipper.sh @@ -264,7 +264,7 @@ function clone_klipper() { status_msg "Cloning Klipper from ${repo} ..." cd "${HOME}" || exit 1 - if git clone "${repo}" "${KLIPPER_DIR}"; then + if git clone "${repo}" "${KLIPPER_DIR}" --depth 1; then cd "${KLIPPER_DIR}" && git checkout "${branch}" else print_error "Cloning Klipper from\n ${repo}\n failed!"