Skip to content

fix: select absorbed submodule checkout as source - #9

Open
coderbants wants to merge 1 commit into
alltuner:mainfrom
stackie-dev:codex/submodule-source-fix
Open

fix: select absorbed submodule checkout as source#9
coderbants wants to merge 1 commit into
alltuner:mainfrom
stackie-dev:codex/submodule-source-fix

Conversation

@coderbants

Copy link
Copy Markdown

Git reports an absorbed submodule's common git directory as the main worktree in worktree-list output. That directory can win source selection at the exact target commit even though it contains no checkout files, causing a full fallback. Include the current top-level checkout as a candidate when it is absent from Git's list. Added a focused regression test and verified the patched binary against a real absorbed submodule on APFS: 8,116 cloned files, zero fallbacks.

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