Files
ECC/scripts/lib
montjeffrey cefc906288 fix(grok): compare worktree roots with native realpath on Windows
GitHub Windows runners use an 8.3 short path for os.tmpdir()
(C:\Users\RUNNER~1\...). git rev-parse --show-toplevel returns the long
path, but JS fs.realpathSync does not expand 8.3 short names, so
isGitWorkTreeRoot compared unequal for a valid worktree and source
preparation fell through to the registry branch and threw.

Prefer fs.realpathSync.native (falling back to realpathSync for injected
fakes) in isGitWorkTreeRoot and findRegistrySource. Fail-closed behavior
is unchanged. Adds cross-platform and Windows-only regression tests.

Fixes the windows npm/full lane on #3882.
2026-11-09 22:07:06 -05:00
..
2026-11-05 23:28:21 -05:00
2026-11-05 23:28:21 -05:00
2026-11-05 23:12:13 -05:00