1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

Add init branch at git init

This commit is contained in:
Salamandar 2024-03-15 13:15:59 +01:00
parent f4296f094a
commit a7b6a5b946
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ fi
ynh_script_progression --message="Setting up source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_exec_as "$app" git -C "$install_dir" init
ynh_exec_as "$app" git -C "$install_dir" init -b main
ynh_exec_as "$app" git -C "$install_dir" remote add origin "$yunorunner_repository"
ynh_exec_as "$app" git -C "$install_dir" fetch --quiet --depth=1 origin "$yunorunner_release"
ynh_exec_as "$app" git -C "$install_dir" reset --quiet --hard FETCH_HEAD

View file

@ -35,7 +35,7 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" --
ynh_script_progression --message="Ensuring downward compatibility..."
if [ ! -d "$install_dir/.git/" ]; then
ynh_exec_as "$app" git -C "$install_dir" init
ynh_exec_as "$app" git -C "$install_dir" init -b main
git -C "$install_dir" remote add origin "$yunorunner_repository"
fi