We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae859f7 + fdf6633 commit d8c59a8Copy full SHA for d8c59a8
src/Filter.cc
@@ -434,6 +434,7 @@ bool FilterFileSystem::GlobOne(const std::filesystem::path &path,
434
// If the globstar is at the end of the glob, then we match
435
// any subsequent part of the path.
436
if (++cur_glob_component == glob.m_glob.end()) {
437
+ partial = false;
438
return true;
439
} else {
440
// To evaluate the globstar, we compare the remainder of the
@@ -489,6 +490,7 @@ bool FilterFileSystem::GlobOne(const std::filesystem::path &path,
489
490
if (GlobOne(subpath, {glob.m_match_dotfile, new_glob},
491
subpartial)) {
492
if (!subpartial && !path_prefix_has_dotfile) {
493
494
495
} else if (path_prefix_has_dotfile) {
496
potential_match = false;
0 commit comments