@@ -1877,15 +1877,17 @@ static enum path_treatment treat_directory(struct dir_struct *dir,
/*
* Other than the path_recurse case above, we only need to
- * recurse into untracked directories if either of the following
+ * recurse into untracked directories if any of the following
* bits is set:
- * - DIR_SHOW_IGNORED_TOO (because then we need to determine if
- * there are ignored entries below)
+ * - DIR_SHOW_IGNORED (because then we need to determine if
+ * there are ignored entries below)
+ * - DIR_SHOW_IGNORED_TOO (same as above)
* - DIR_HIDE_EMPTY_DIRECTORIES (because we have to determine if
* the directory is empty)
*/
if (!excluded &&
- !(dir->flags & (DIR_SHOW_IGNORED_TOO |
+ !(dir->flags & (DIR_SHOW_IGNORED |
+ DIR_SHOW_IGNORED_TOO |
DIR_HIDE_EMPTY_DIRECTORIES))) {
return path_untracked;
}
@@ -292,7 +292,7 @@ EOF
test_cmp expect actual
'
-test_expect_failure 'ls-files with "**" patterns and --directory' '
+test_expect_success 'ls-files with "**" patterns and --directory' '
# Expectation same as previous test
git ls-files --directory -o -i --exclude "**/a.1" >actual &&
test_cmp expect actual
@@ -769,7 +769,7 @@ test_expect_success 'avoid traversing into ignored directories' '
test_cmp trace.expect trace.relevant
'
-test_expect_failure 'traverse into directories that may have ignored entries' '
+test_expect_success 'traverse into directories that may have ignored entries' '
test_when_finished rm -f output &&
test_create_repo need-to-traverse-into-hierarchy &&
(