Skip to content

push directory filtering excludes descendants of filesystem roots - #30

Open
dipeshbabu wants to merge 3 commits into
subconscious-systems:mainfrom
dipeshbabu:fix/directory-roots
Open

dipeshbabu wants to merge 3 commits into
subconscious-systems:mainfrom
dipeshbabu:fix/directory-roots

Conversation

@dipeshbabu

Copy link
Copy Markdown

The directory predicate appends a separator to the root. For / or a Windows drive root, it then expects a double separator and excludes legitimate descendant sessions. Windows path case differences also cause mismatches.

Use native path.relative containment checks. Tests cover filesystem roots, exact directories, nested directories, siblings, empty paths, and Windows case differences.

Validation: frozen-lockfile dependencies, typecheck, full tests, npm build, and bundled CLI version/help smoke checks. Ubuntu/Windows Node 20/22 CI passed before PR creation on this exact head commit (970f705): https://github.com/dipeshbabu/vibi-cli/actions/runs/37263329940

This branch includes the CI foundation from #2; merging that PR first removes the common CI changes from this diff.

Closes #29.

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.

push directory filtering excludes descendants of filesystem roots

1 participant