chore(git): remove orphan gitlinks (.claude, bms-monorepo, evo-ai-docs)#102
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves an orphaned File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
.claude gitlink.claude, bms-monorepo, evo-ai-docs)
`.claude` was committed in 73646ae as a gitlink (mode 160000) without a matching entry in `.gitmodules`. CI fails on `git submodule update --init` with `fatal: No url found for submodule path '.claude' in .gitmodules`. Remove the gitlink from the index and broaden `.gitignore` so the local Claude Code config dir cannot be re-added as a tracked entity.
Same root cause as the `.claude` removal: both `bms-monorepo` and `evo-ai-docs` were committed in 73646ae as gitlinks (mode 160000) without matching entries in `.gitmodules`. CI fails on `git submodule update --init` with `fatal: No url found for submodule path '...'`. Remove both gitlinks and broaden `.gitignore` so the local sibling clones cannot be re-added as tracked entities.
7dc88ac to
12a1583
Compare
|
Code review — EVO-1241 prerequisite (orphan gitlinks) Code is correct. Removes the 🟢 LOW —
No verdict — awaiting Davidson's decision. |
|
Code review — EVO-1241 — Round 2 (delta vs the 03:03 review) No commits pushed since round 1 (head still The real gate here is process, not code: the card flags "Necessário conversar com o Davidson antes" — if 🟢 L-4 ( No verdict from me — awaiting Davidson's sign-off; consolidated status on the Linear card. |
|
✅ Code LGTM (round-2 re-review). The gitlink cleanup is correct — it removes the orphan
|
|
Update: the reviewer (@daniel.paes) has authorized proceeding with the full merge chain, so the hold above is lifted. Merging now as the first link ( |
Summary
CI quebra com:
Causa: no commit
73646ae(chore(submodules): update submodule commits and add new submodules), três paths foram adicionados ao índice como gitlinks (mode160000) sem entries correspondentes em.gitmodules:.gitmodules?.claudee8b141dbms-monorepo374e13cevo-ai-docs9cf73e9Em todo checkout/CI o
git submodule update --initaborta no primeiro path órfão..gitignorejá tinha.claude/*(ignora conteúdo, não a entrada gitlink na árvore);bms-monorepo/eevo-ai-docs/nunca foram ignorados.Fix
git rm --cached .claude bms-monorepo evo-ai-docs— remove os 3 gitlinks órfãos do índice..gitignore: adicionar.claude,.claude/,bms-monorepo/eevo-ai-docs/para impedir que sejam re-adicionados..claude/é config local per-developer do Claude Code.bms-monorepo/eevo-ai-docs/são clones-irmãos locais que devem ficar fora deste superproject — se forem virar submodules de verdade, isso é mudança separada com entries em.gitmodules.Test plan
git ls-tree HEAD | awk '$2=="commit"'— só lista os 10 submodules registrados em.gitmodules.git statusno working tree limpo —.gitignorecobre os 3 diretórios.git submodule update --initnão levanta mais ofatal: No url found..claude/,bms-monorepo/,evo-ai-docs/locais não veem como untracked após pull.