fix: remove stray .claude/worktrees gitlinks that break recursive clone - #17
Open
JathukulanAlphintra wants to merge 1 commit into
Conversation
Six Claude Code worktrees were committed as bare gitlinks (mode 160000)
under .claude/worktrees/ with no corresponding entry in .gitmodules.
Any recursive submodule operation therefore aborts on them:
fatal: No url found for submodule path 'corpus/.claude/worktrees/feat-A'
fatal: Failed to recurse into submodule path 'corpus'
This breaks `git clone --recurse-submodules` of pineforge-engine, which
consumes this repo as a submodule, and so breaks cloning via GitHub
Desktop entirely (it always clones recursively).
Remove the six index entries and add .claude/worktrees/ to .gitignore so
they cannot be re-added. No file content is touched: these entries were
only ever pointers, never checked-out trees.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Six Claude Code worktrees are committed as bare gitlinks (mode
160000) under.claude/worktrees/, with no corresponding entry in.gitmodules:Git sees "there is a submodule here" but has no URL for it, so any recursive submodule operation aborts:
Impact
pineforge-engineconsumes this repo as a submodule, so this breaks cloning the engine with--recurse-submodules— which means GitHub Desktop cannot clonepineforge-engineat all, since it always clones recursively. The current workaround is to clone from the command line and rungit submodule update --initwithout--recursive.The entries are present on every branch in this repo, not just this one.
Fix
git rm --cached)..claude/worktrees/to.gitignoreso they cannot be re-added.Scoped deliberately to
.claude/worktrees/rather than all of.claude/, so shared Claude config in this repo stays committable.Risk
None to file content. These entries were only ever pointers — they have no checked-out tree in this repo, and the commits they reference are not reachable here.
git diff --statagainst the base is exactly the six removals plus the.gitignorerule; no tracked file content changes.Verification
After this change, on a clean clone:
completes instead of aborting. (Git LFS must be installed —
brew install git-lfs && git lfs install— asdata/ohlcv_*.csvis LFS-tracked.)🤖 Generated with Claude Code