From aa728e28a785001a75b040d9915ceb8bfb1f9145 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 28 Jul 2023 11:36:38 +0200 Subject: [PATCH] [FIX] fetch branch before checkout --- scripts/config | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/config b/scripts/config index a81b932..92659f2 100755 --- a/scripts/config +++ b/scripts/config @@ -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