t3001, t7300: add testcase showcasing missed directory traversal
authorElijah Newren <newren@gmail.com>
Wed, 12 May 2021 17:28:18 +0000 (17:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 May 2021 23:45:03 +0000 (08:45 +0900)
commita97c7a8bc4f2068b2e8c23ce8d17f7db8333ded0
tree629aba00395e8d427f3cbc6b08f310d1f68c6b68
parent2e4e43a6910393d681d095f515d41232c2372966
t3001, t7300: add testcase showcasing missed directory traversal

In the last commit, we added a testcase showing that the directory
traversal machinery sometimes traverses into directories unnecessarily.
Here we show that there are cases where it does the opposite: it does
not traverse into directories, despite those directories having
important files that need to be flagged.

Add a testcase showing that `git ls-files -o -i --directory` can omit
some of the files it should be listing, and another showing that `git
clean -fX` can fail to clean out some of the expected files.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3001-ls-files-others-exclude.sh
t/t7300-clean.sh