From 510374207dcca69a6f7d2a4bae606822662925a2 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Sun, 15 Mar 2026 19:20:39 -0500 Subject: [PATCH] fix: vcs watcher if statement (#17673) --- packages/opencode/src/project/vcs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/project/vcs.ts b/packages/opencode/src/project/vcs.ts index 34d590543..6eada6b67 100644 --- a/packages/opencode/src/project/vcs.ts +++ b/packages/opencode/src/project/vcs.ts @@ -47,7 +47,7 @@ export namespace Vcs { log.info("initialized", { branch: current }) const unsubscribe = Bus.subscribe(FileWatcher.Event.Updated, async (evt) => { - if (evt.properties.file.endsWith("HEAD")) return + if (!evt.properties.file.endsWith("HEAD")) return const next = await currentBranch() if (next !== current) { log.info("branch changed", { from: current, to: next })