From 07ccfdb4bfb5cd46d0c18be22dcb5f2f0d63eb14 Mon Sep 17 00:00:00 2001 From: Roman Kupriyanov Date: Sat, 17 Jul 2021 02:02:27 +0300 Subject: [PATCH] upgrade: fix upgrade using git --- scripts/upgrade | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d5f756d..151443a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,13 +101,15 @@ then # Update through git pushd "$final_path" git fetch - git checkout stable $version_commit + git checkout stable git pull + git reset --hard $version_commit popd pushd "$final_path/addon" git fetch - git checkout stable $addons_version_commit + git checkout stable git pull + git reset --hard $addons_version_commit popd # If git is not present upgrade through manual method else