This fixes the issue reported at https://lore.kernel.org/git/CADjceoQxoL932W4mkfhG6VOgrQBhs9k6tXkWSkraKVPmUP+uCw@xxxxxxxxxxxxxx/ , a regression in git-2.27.0 (that wasn't reported until after 2.28.0). It involves running ls-files --others with globs when nonbare repositories are present. Thanks to christian w for reporting, and Kyle Meyer for finding a way to simplify the testcase and bisecting. Very helpful. Elijah Newren (2): t3000: fix some test description typos dir: avoid prematurely marking nonbare repositories as matches dir.c | 9 ++++++--- t/t3000-ls-files-others.sh | 24 ++++++++++++++++++++---- 2 files changed, 26 insertions(+), 7 deletions(-) base-commit: 47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-829%2Fnewren%2Fls-files-wildmatch-nonbare-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-829/newren/ls-files-wildmatch-nonbare-v1 Pull-Request: https://github.com/git/git/pull/829 -- gitgitgadget