diff --git a/scripts/upgrade b/scripts/upgrade index b6f1812..df37377 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,9 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --keep=".env" pushd "$final_path" + git checkout production + git pull --quiet + git checkout $COMMIT ./bw-dev update popd