From 4f9acbd3cc1019df2d043e643f8977062248e2a3 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 12 Feb 2019 10:08:38 +0100 Subject: [PATCH] manage git upgrade --- scripts/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8137857..97b7a89 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,7 +100,10 @@ path_url=$(ynh_normalize_url_path $path_url) # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source "$final_path" -( cd $final_path/$app && git pull --quiet ) +pushd $final_path/$app + git reset --hard + git pull --quiet +popd #================================================= # NGINX CONFIGURATION