diff --git a/crates/worktree/src/worktree_tests.rs b/crates/worktree/src/worktree_tests.rs index 48eb6cc08d..1454ad52f8 100644 --- a/crates/worktree/src/worktree_tests.rs +++ b/crates/worktree/src/worktree_tests.rs @@ -2116,6 +2116,10 @@ async fn test_global_gitignore(executor: BackgroundExecutor, cx: &mut TestAppCon "foo": "", "bar": "", "sub": { + "bar": "", + }, + "subrepo": { + ".git": {}, "bar": "" }, "baz": "" @@ -2140,7 +2144,13 @@ async fn test_global_gitignore(executor: BackgroundExecutor, cx: &mut TestAppCon cx.run_until_parked(); worktree.update(cx, |worktree, _cx| { - check_worktree_entries(worktree, &[], &["foo", "bar"], &["sub/bar", "baz"], &[]); + check_worktree_entries( + worktree, + &[], + &["foo", "bar", "subrepo/bar"], + &["sub/bar", "baz"], + &[], + ); }) }