clean: demonstrate a bug with pathspecs
authorDerrick Stolee <redacted>
Thu, 16 Jan 2020 20:21:53 +0000 (20:21 +0000)
committerJunio C Hamano <redacted>
Thu, 16 Jan 2020 20:56:12 +0000 (12:56 -0800)
commitf365bf40a073624b96651c9f731da4bd7d0114f7
tree5f0c60912ef9dfaee304bbd0ffc59c0a14d11338
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
clean: demonstrate a bug with pathspecs

b9670c1f5e (dir: fix checks on common prefix directory, 2019-12-19)
modified the way pathspecs are handled when handling a directory
during "git clean -f <path>". While this improved the behavior for
known test breakages, it also regressed in how the clean command
handles cleaning a specified file.

Add a test case that demonstrates this behavior. This test passes
before b9670c1f5e then fails after.

Helped-by: Kevin Willford <redacted>
Signed-off-by: Derrick Stolee <redacted>
Reviewed-by: Elijah Newren <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t7300-clean.sh
git clone https://git.99rst.org/PROJECT