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

[FIX] fetch branch before checkout

This commit is contained in:
Holger Brunn 2023-07-28 11:36:38 +02:00
parent 873f93940a
commit aa728e28a7

View file

@ -40,6 +40,7 @@ run__update_code() {
else
pushd $CUSTOM_REPO
if [ ! -z "$custom_branch" ]; then
ynh_exec_as $app git -C $CUSTOM_REPO fetch origin $custom_branch
ynh_exec_as $app git -C $CUSTOM_REPO checkout $custom_branch
fi
ynh_exec_as $app git -C $CUSTOM_REPO reset --hard