From 257dda3db5da6e497558cacde15488b618e443b0 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 20 Nov 2025 22:35:16 -0500 Subject: fix(worker): use force checkout for base branch --- Omni/Agent/start-worker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Omni/Agent') diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh index 5607f6d..eb096b7 100755 --- a/Omni/Agent/start-worker.sh +++ b/Omni/Agent/start-worker.sh @@ -55,7 +55,9 @@ while true; do # A. Sync with Live # We use 'git rebase' to keep history linear - git checkout omni-worker-1 >/dev/null 2>&1 + # Force checkout to clean up any untracked files from previous runs + git checkout -f omni-worker-1 >/dev/null 2>&1 + # Rebase directly on local live branch (shared repo) if ! git rebase live >/dev/null 2>&1; then echo "Warning: Rebase conflict at start of loop. Aborting rebase and proceeding with local state." -- cgit v1.2.3