diff --git a/packages/opencode/src/project/vcs.ts b/packages/opencode/src/project/vcs.ts index 34d59054314..6eada6b675d 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 })