From 91ffa1ed4fadbe834d5ddb17c467d843326482cf Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 21 Mar 2022 19:42:10 +0100 Subject: [PATCH] Silence git warnings about detached head --- scripts/install | 2 +- scripts/upgrade | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 91f6325..e57816c 100755 --- a/scripts/install +++ b/scripts/install @@ -94,7 +94,7 @@ ynh_script_progression --message="Cloning Firefly-iii..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path -git clone --quiet -b $tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path +git clone -c advice.detachedHead=false --quiet -b $tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path chmod 750 "$final_path" chmod -R o-rwx "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 1a79f0f..8ba19e0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,11 +119,11 @@ then # Download, check integrity, uncompress and patch the source from app.src if [ $update -eq 1 ] then - - git clone --quiet -b $latest_tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path + + git clone -c advice.detachedHead=false --quiet -b $latest_tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path else - git clone --quiet -b $tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path + git clone -c advice.detachedHead=false --quiet -b $tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path fi