Skip to content

fix(extraction): index independent nested git repos#201

Open
sjh9714 wants to merge 1 commit into
colbymchenry:mainfrom
sjh9714:fix-nested-git-repo-indexing
Open

fix(extraction): index independent nested git repos#201
sjh9714 wants to merge 1 commit into
colbymchenry:mainfrom
sjh9714:fix-nested-git-repo-indexing

Conversation

@sjh9714
Copy link
Copy Markdown

@sjh9714 sjh9714 commented May 20, 2026

Summary

Why

Before this change, a parent Git repo saw an unregistered nested repo as a single sub_repo1/ untracked directory. That directory did not match source include patterns, so top-level workspace scans could report no files even though the nested repo contained source files.

Testing

  • npx vitest run __tests__/extraction.test.ts -t "independent nested git" — failed before the fix with expected [] to include 'sub_repo1/src/main.cpp'
  • npx vitest run __tests__/extraction.test.ts -t "independent nested git|git submodules"
  • npx vitest run __tests__/extraction.test.ts
  • npm run build
  • npm test
  • git diff --check

Fixes #193

Note: I used Codex to help inspect the scan path and draft the regression test, then reviewed the final diff and ran the listed verification commands locally.

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.

codegraph init -i does not detect source files when run from a top-level CMake workspace containing multiple nested repos

1 participant