diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 02f67b73b762850f3c7f0faf0886bf4011f57308..9b12681f971f39fe30fc113fecf37bd219d9b65f 100755 (executable)
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
)
'
+test_expect_success SANITY 'git clean -d with an unreadable empty directory' '
+ mkdir foo &&
+ chmod a= foo &&
+ git clean -dfx foo &&
+ ! test -d foo
+'
+
test_done