From 40dd07623401c33d6207603c9b2fd842cfbeca7c Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Fri, 28 Oct 2022 13:40:20 -0400 Subject: [PATCH] add git fetch --- scripts/patch-realsense-ubuntu-lts-hwe.sh | 4 ++-- scripts/patch-realsense-ubuntu-lts.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/patch-realsense-ubuntu-lts-hwe.sh b/scripts/patch-realsense-ubuntu-lts-hwe.sh index 13fcb97f6a..2671528e5e 100755 --- a/scripts/patch-realsense-ubuntu-lts-hwe.sh +++ b/scripts/patch-realsense-ubuntu-lts-hwe.sh @@ -125,7 +125,7 @@ then kernel_git_tag=$(git ls-remote --tags origin | grep "${kernel_full_num}\." | grep '[^^{}]$' | head -n 1 | awk -F/ '{print $NF}') fi echo -e "\e[32mFetching Ubuntu LTS tag \e[47m${kernel_git_tag}\e[0m \e[32m to the local kernel sources folder\e[0m" - git fetch origin tag ${kernel_git_tag} --no-tags + git fetch origin tag ${kernel_git_tag} --no-tags --depth 1 # Verify that there are no trailing changes., warn the user to make corrective action if needed if [ $(git status | grep 'modified:' | wc -l) -ne 0 ]; @@ -153,7 +153,7 @@ then if [ $reset_driver -eq 1 ]; - then + then echo -e "\e[43mUser requested to rebuild and reinstall ubuntu-${ubuntu_codename} stock drivers\e[0m" else # Patching kernel for RealSense devices diff --git a/scripts/patch-realsense-ubuntu-lts.sh b/scripts/patch-realsense-ubuntu-lts.sh index 255a490026..ed9a0ee37d 100755 --- a/scripts/patch-realsense-ubuntu-lts.sh +++ b/scripts/patch-realsense-ubuntu-lts.sh @@ -116,7 +116,7 @@ then kernel_full_num=$(echo $LINUX_BRANCH | cut -d '-' -f 1,2) kernel_git_tag=$(git ls-remote --tags origin | grep "${kernel_full_num}\." | grep '[^^{}]$' | tail -n 1 | awk -F/ '{print $NF}') echo -e "\e[32mFetching Ubuntu LTS tag \e[47m${kernel_git_tag}\e[0m \e[32m to the local kernel sources folder\e[0m" - git fetch origin tag ${kernel_git_tag} --no-tags + git fetch origin tag ${kernel_git_tag} --no-tags --depth 1 # Verify that there are no trailing changes., warn the user to make corrective action if needed if [ $(git status | grep 'modified:' | wc -l) -ne 0 ]; @@ -144,7 +144,7 @@ then if [ $reset_driver -eq 1 ]; - then + then echo -e "\e[43mUser requested to rebuild and reinstall ubuntu-${ubuntu_codename} stock drivers\e[0m" else # Patching kernel for RealSense devices