diff --git a/Linux/Server/startup-server.sh b/Linux/Server/startup-server.sh index 2cb3c16..c3c99d0 100644 --- a/Linux/Server/startup-server.sh +++ b/Linux/Server/startup-server.sh @@ -6,7 +6,8 @@ CLEAN_REPO_URL=$(echo "${GIT_REPO_URL}" | sed 's|^https://||') if [ -d .git ]; then echo "Pulling latest changes from the repository..." - git pull "https://${GIT_USERNAME}:${GIT_PAT}@${CLEAN_REPO_URL}" "${GIT_BRANCH}" || true + git fetch "https://${GIT_USERNAME}:${GIT_PAT}@${CLEAN_REPO_URL}" "${GIT_BRANCH}" + git reset --hard FETCH_HEAD fi # Constants EXTENSIONS="yml json conf properties" # Space-separated list of extensions