t7300: clean -d should skip dirs with ignored files
commitb3487ccc0bffc28e134333b164d0d84fdd15d9f4
authorSamuel Lijin <sxlijin@gmail.com>
Thu, 18 May 2017 08:21:49 +0000 (18 04:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 May 2017 03:06:52 +0000 (22 12:06 +0900)
treeb52b4b552852a39bc80b4f6bbdec30e2f11e1cb6
parent95d67879735cfecfdd85f89e59d993c5b4de8835
t7300: clean -d should skip dirs with ignored files

If git sees a directory which contains only untracked and ignored
files, clean -d should not remove that directory. It was recently
discovered that this is *not* true of git clean -d, and it's possible
that this has never worked correctly; this test and its accompanying
patch series aims to fix that.

Signed-off-by: Samuel Lijin <sxlijin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7300-clean.sh