Skip to content

fix(git): force core.longpaths=true on Windows for native git commands - #280

Open
Spelt wants to merge 1 commit into
HashLoad:mainfrom
Spelt:fix/windows-longpaths
Open

fix(git): force core.longpaths=true on Windows for native git commands#280
Spelt wants to merge 1 commit into
HashLoad:mainfrom
Spelt:fix/windows-longpaths

Conversation

@Spelt

@Spelt Spelt commented Aug 26, 2026

Copy link
Copy Markdown

Checkouts of dependencies with deep paths (e.g. Kastri's Demos/FCMRebooted/NotificationExtension/...) fail with "Filename too long" and "Could not reset index file to revision 'HEAD'" (exit 128) when the user's git config lacks core.longpaths. The embedded go-git client did not have this limitation, so the switch to native git in 3.x surfaced it as a regression.

Prepend -c core.longpaths=true to every native git invocation on Windows so installs work regardless of the user's global git config.

Checkouts of dependencies with deep paths (e.g. Kastri's
Demos/FCMRebooted/NotificationExtension/...) fail with "Filename too
long" and "Could not reset index file to revision 'HEAD'" (exit 128)
when the user's git config lacks core.longpaths. The embedded go-git
client did not have this limitation, so the switch to native git in 3.x
surfaced it as a regression.

Prepend -c core.longpaths=true to every native git invocation on
Windows so installs work regardless of the user's global git config.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant