From 29b136c7345054d19726d06015ce3b2ade0b6556 Mon Sep 17 00:00:00 2001 From: hy Date: Wed, 22 Apr 2026 21:55:24 +0800 Subject: [PATCH] fix: fetch target commit into cached workspace --- monitor/service_release.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitor/service_release.py b/monitor/service_release.py index 1fd6d1a..6402387 100644 --- a/monitor/service_release.py +++ b/monitor/service_release.py @@ -432,6 +432,12 @@ def prepare_persistent_build_workspace( label=f"{label} fetch build workspace", timeout_seconds=300, ) + local_command_output( + ["git", "-C", str(workspace_root), "fetch", "origin", commit], + cwd=workspace_root, + label=f"{label} fetch build workspace commit", + timeout_seconds=300, + ) local_command_output( ["git", "-C", str(workspace_root), "reset", "--hard", commit], cwd=workspace_root,