Skip to content

Remove stale .claude/worktrees/ submodule gitlinks - #5

Merged
llbartekll merged 1 commit into
mainfrom
clean-claude-worktree-gitlinks
May 28, 2026
Merged

llbartekll merged 1 commit into
mainfrom
clean-claude-worktree-gitlinks

Conversation

@llbartekll

Copy link
Copy Markdown
Owner

Summary

Three submodule-mode (160000) entries left over from Claude Code's worktree feature were tracked in the index without a matching .gitmodules entry. Any tool that processes submodules chokes on them:

```
fatal: No url found for submodule path '.claude/worktrees/competent-joliot-876b10' in .gitmodules
```

This is what forced @manuelwedler to fork the repo and `rm -rf .claude/` before building on the original registry CI integration. It's also why `cargo install --git` against `llbartekll/clear-signing` currently fails on registry PR #2586 — see his report.

Changes

  • `git rm --cached` the three stale gitlinks. No real submodule was ever pointed at — they were scratch worktrees that got accidentally tracked.
  • Add `.claude/worktrees/` to `.gitignore` so future Claude sessions don't reintroduce them.

Test plan

  • `git ls-files --stage .claude/worktrees/` returns nothing on this branch.
  • After merge, registry PR #2586's Rust runner action (`cargo install --git https://github.com/llbartekll/clear-signing --branch main --locked cs-test`) succeeds end-to-end.

Three submodule-mode (160000) entries left over from Claude Code's
worktree feature were tracked in the index without a matching
.gitmodules entry. Any tool that processes submodules — actions/checkout
on the registry CI, cargo install --git on the registry's Rust runner
action — chokes on them with `no URL configured for submodule`.

Remove the three index entries and add .claude/worktrees/ to .gitignore
so future Claude sessions don't reintroduce them. No real submodule was
ever pointed at.

This unblocks ethereum/clear-signing-erc7730-registry#2586
where the Rust runner action uses `cargo install --git` against this
repo.
@llbartekll
llbartekll merged commit f865c5b into main May 28, 2026
2 of 3 checks passed
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