diff options
| author | Aiden Cline <[email protected]> | 2026-03-15 19:20:39 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-15 19:20:39 -0500 |
| commit | 510374207dcca69a6f7d2a4bae606822662925a2 (patch) | |
| tree | d35c3c13fc2dfa635d0db05c677a7bd57833b61d | |
| parent | aedbecedf7ebf9b6e456562732e56a734acd121c (diff) | |
| download | opencode-510374207dcca69a6f7d2a4bae606822662925a2.tar.gz opencode-510374207dcca69a6f7d2a4bae606822662925a2.zip | |
fix: vcs watcher if statement (#17673)
| -rw-r--r-- | packages/opencode/src/project/vcs.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 }) |
