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:
parent
873f93940a
commit
aa728e28a7
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ run__update_code() {
|
||||||
else
|
else
|
||||||
pushd $CUSTOM_REPO
|
pushd $CUSTOM_REPO
|
||||||
if [ ! -z "$custom_branch" ]; then
|
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
|
ynh_exec_as $app git -C $CUSTOM_REPO checkout $custom_branch
|
||||||
fi
|
fi
|
||||||
ynh_exec_as $app git -C $CUSTOM_REPO reset --hard
|
ynh_exec_as $app git -C $CUSTOM_REPO reset --hard
|
||||||
|
|
Loading…
Reference in a new issue