From 0bf306c4530c491c155740dd38c2a88abe0f3942 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Fri, 22 Oct 2021 16:32:18 -0400 Subject: [PATCH] shallow git clone to save space and time --- Birders_Guide_Installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Birders_Guide_Installer.sh b/Birders_Guide_Installer.sh index c32069b..eec2292 100755 --- a/Birders_Guide_Installer.sh +++ b/Birders_Guide_Installer.sh @@ -108,7 +108,7 @@ stage_2() { if [ ! -d ${my_dir} ];then cd ~ || exit 1 echo "Cloning the BirdNET-Pi repository $branch branch into your home directory" - git clone -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ~/BirdNET-Pi + git clone --depth 1 -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ~/BirdNET-Pi else cd ${my_dir} && git checkout ${branch} fi