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