Remplacer 'git checkout' par 'git reset --hard' pour une mise à jour plus précise du dépôt.
All checks were successful
SSH Backend Deploy / ssh-deploy (push) Successful in 9s

This commit is contained in:
2025-04-27 00:11:07 +02:00
parent d55180e048
commit 792bdca965

View File

@@ -31,7 +31,7 @@ main() {
log "Updating repository to match remote main branch..."
git fetch origin
git checkout -f origin/main
git reset --hard origin/main
if [ $? -ne 0 ]; then
log "Failed to update to the latest main branch."
exit 1