Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughOn native Windows, Merge Risk: ⚪ Minimal · up to This narrowly enables long-path handling for native Windows worktree creation without changing persistent Git configuration or WSL behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
|
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
Thank you for this, @hwantage — you found a real bug and the usage: git [-v | --version] [-h | --help] [-C ] [-c =] These are common Git commands used in various situations: start a working area (see also: git help tutorial) work on the current change (see also: git help everyday) examine the history and state (see also: git help revisions) grow, mark and tweak your common history collaborate (see also: git help workflows) 'git help -a' and 'git help -g' list available subcommands and some One logistics note: fork PRs in this repo only run What that follow-up commit covers:
New PR: #15866. Leaving this one open so it stays linked — thanks again! |
|
@nwparker |
|
Landed as #15866 — thank you @hwantage! 🎉 Your commit was cherry-picked and the squash carries a This one got real Windows hardware verification before merge: the |
ELI5
Windows can reject deeply nested checkout paths. Git for Windows can be installed with long-path handling disabled, so ordinary users can hit this while creating a worktree in a deep directory. When Orca creates a local worktree on Windows, it now asks Git to enable long-path handling for that one
git worktree addcommand. Users do not need to discover and change their global Git settings to use a core Orca workflow.What Changed
src/main/git/worktree.tsso native Windowsgit worktree addis invoked asgit -c core.longpaths=true worktree add ....worktreesubcommand because-cis a global Git option.wslDistro), which runs in the Linux guest rather than against native Windows paths.src/main/git/worktree-add-creation-config.test.tsfor both native Windows and WSL command construction.Why
The worktree checkout can exceed the legacy Windows path limit when the workspace root, branch name, and tracked file path are combined. This can affect users with a standard Git for Windows installation because the current manual remedy is a
git configchange. Since worktree creation is a core Orca workflow, failing before the worktree is created is a high-impact failure. Applyingcore.longpaths=trueon the command avoids persistent changes to global or repository Git configuration and is compatible with Orca's Git 2.25 baseline because it uses Git's command-line configuration option rather than the newer indexed environment-config protocol.Linked Issue
Fixes #15785
Visual Proof
Testing
Commands run:
pnpm exec vitest run --config config/vitest.config.ts src/main/git/worktree-add-creation-config.test.tsgit diff --checkpnpm exec oxlint src/main/git/worktree.ts src/main/git/worktree-add-creation-config.test.tspnpm exec tsc --noEmit -p config/tsconfig.node.json --composite falseAI Disclosure
Developed with OpenAI Codex (GPT-5).
Review
process.platform === 'win32'; macOS and Linux keep the existing argv.wslDistrokeep the existing Linux Git argv.-c core.longpaths=trueis placed before the subcommand and avoids reliance onGIT_CONFIG_COUNTsupport.Agent skill upstream boundary
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildwere not run locally; CI should cover the remaining checks.Author
Github: @hwantage