Skip to content

Fix directory_tree returning empty results for paths outside workspace#312

Open
zikajk wants to merge 1 commit intomasterfrom
fix-directory-tree-outside-workspace
Open

Fix directory_tree returning empty results for paths outside workspace#312
zikajk wants to merge 1 commit intomasterfrom
fix-directory-tree-outside-workspace

Conversation

@zikajk
Copy link
Member

@zikajk zikajk commented Feb 16, 2026

directory_tree filtered all files when called on paths outside workspace folders. path->root-filename returned nil, causing git-ls-files to run in the wrong directory and the gitignore filter to reject every file.

Skip gitignore filtering when the target path is not within any workspace folder, restoring pre-42712c32 behavior for this case.

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

directory_tree filtered all files when called on paths outside workspace
folders. path->root-filename returned nil, causing git-ls-files to run
in the wrong directory and the gitignore filter to reject every file.

Skip gitignore filtering when the target path is not within any
workspace folder, restoring pre-42712c32 behavior for this case.
@zikajk zikajk requested a review from ericdallo February 16, 2026 15:39
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