Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions t/t1092-virtualfilesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ test_expect_success 'verify folder entries include all files' '
cat > expected <<-\EOF &&
?? dir1/a
?? dir1/b
?? dir1/dir2/a
?? dir1/dir2/b
?? dir1/untracked.txt
EOF
test_cmp expected actual
Expand Down
4 changes: 4 additions & 0 deletions virtualfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ int is_excluded_from_virtualfilesystem(const char *pathname, int pathlen, int dt
}

if (dtype == DT_DIR) {
int ret = is_included_in_virtualfilesystem(pathname, pathlen);
if (ret > 0)
return 0;

if (!parent_directory_hashmap.tablesize && virtual_filesystem_data.len)
initialize_parent_directory_hashmap(&parent_directory_hashmap, &virtual_filesystem_data);
if (!parent_directory_hashmap.tablesize)
Expand Down