Skip to content

fix(shell): extend project_open scan to find nested-git projects#209

Open
codepuncher wants to merge 2 commits into
masterfrom
fix/project-open-nested-git
Open

fix(shell): extend project_open scan to find nested-git projects#209
codepuncher wants to merge 2 commits into
masterfrom
fix/project-open-nested-git

Conversation

@codepuncher

@codepuncher codepuncher commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • project_open autocomplete was missing WordPress projects (e.g. clinimed) whose .git directories live inside bedrock/ and trellis/ subdirectories rather than at the project root
  • Extended _project_open_scan with a depth-4 pass that maps nested sub-repo paths back to their parent project directory, with sort -u to deduplicate
  • Moved the bats submodule from tests/bats to the repo root for a shorter path

Changes

  • shell/aliases: add depth-4 find pass in _project_open_scan; deduplicate with sort -u
  • tests/project_open.bats: add clinimed-style fixture (.git only in subdirs) and 2 new test cases
  • .gitmodules / CI: relocate bats submodule from tests/bats to bats/

Testing

./bats/bin/bats tests/project_open.bats

WordPress projects like clinimed hold .git inside bedrock/ and trellis/
subdirectories rather than at the project root, so the depth-3 scan
missed them. Add a depth-4 pass that maps sub-repo paths back to their
parent project directory, with sort -u to deduplicate.

Move bats submodule to repo root and add test fixtures covering this
nested-git structure.
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