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:
parent
f4296f094a
commit
a7b6a5b946
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue