From 792bdca9659c225807c2727d55d3fedbbb4f827b Mon Sep 17 00:00:00 2001 From: Kerboul Date: Sun, 27 Apr 2025 00:11:07 +0200 Subject: [PATCH] =?UTF-8?q?Remplacer=20'git=20checkout'=20par=20'git=20res?= =?UTF-8?q?et=20--hard'=20pour=20une=20mise=20=C3=A0=20jour=20plus=20pr?= =?UTF-8?q?=C3=A9cise=20du=20d=C3=A9p=C3=B4t.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 89ba255..5ee338b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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