Code

clean: unreadable directory may still be rmdir-able if it is empty
[git.git] / t / t7300-clean.sh
index 02f67b73b762850f3c7f0faf0886bf4011f57308..9b12681f971f39fe30fc113fecf37bd219d9b65f 100755 (executable)
@@ -453,4 +453,11 @@ test_expect_success 'git clean -e' '
        )
 '
 
+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