This commit is contained in:
Mikayla Maki committed 2023-06-07 14:13:57 -07:00
1 parent 35ef109e8d
commit e66ecae7ac
1 file changed
+10 -2
+10 -2
View File
@@ -709,7 +709,11 @@ impl FakeFs {
queue.push_back((path.join(name), entry.clone()));
}
}
if include_dot_git || !path.components().any(|component| component.as_os_str() == *FS_DOT_GIT) {
if include_dot_git
|| !path
.components()
.any(|component| component.as_os_str() == *FS_DOT_GIT)
{
result.push(path);
}
}
@@ -725,7 +729,11 @@ impl FakeFs {
for (name, entry) in entries {
queue.push_back((path.join(name), entry.clone()));
}
if include_dot_git || !path.components().any(|component| component.as_os_str() == *FS_DOT_GIT) {
if include_dot_git
|| !path
.components()
.any(|component| component.as_os_str() == *FS_DOT_GIT)
{
result.push(path);
}
}