fix: vcs watcher if statement (#17673)

This commit is contained in:
Aiden Cline 2026-03-15 19:20:39 -05:00 committed by GitHub
parent aedbecedf7
commit 510374207d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 })