From fae8a01881264d8a4d37c85e92689386c16b7152 Mon Sep 17 00:00:00 2001 From: CrossAgent Date: Wed, 27 May 2026 15:16:14 +0800 Subject: [PATCH] Fix deploy checkout cleanup --- scripts/deploy-test-explorer-api.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/deploy-test-explorer-api.sh b/scripts/deploy-test-explorer-api.sh index c092db1..ae43380 100755 --- a/scripts/deploy-test-explorer-api.sh +++ b/scripts/deploy-test-explorer-api.sh @@ -39,6 +39,8 @@ ensure_source() { fi git -C "$SRC_DIR" fetch --prune origin "$BRANCH" + git -C "$SRC_DIR" reset --hard + git -C "$SRC_DIR" clean -fdx -e .ci-deploy-owned git -C "$SRC_DIR" checkout -B "$BRANCH" "origin/$BRANCH" git -C "$SRC_DIR" reset --hard "origin/$BRANCH" git -C "$SRC_DIR" clean -fdx -e .ci-deploy-owned