Skip to content

Commit 5103742

Browse files
authored
fix: vcs watcher if statement (#17673)
1 parent aedbece commit 5103742

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/project

packages/opencode/src/project/vcs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export namespace Vcs {
4747
log.info("initialized", { branch: current })
4848

4949
const unsubscribe = Bus.subscribe(FileWatcher.Event.Updated, async (evt) => {
50-
if (evt.properties.file.endsWith("HEAD")) return
50+
if (!evt.properties.file.endsWith("HEAD")) return
5151
const next = await currentBranch()
5252
if (next !== current) {
5353
log.info("branch changed", { from: current, to: next })

0 commit comments

Comments
 (0)