Merge branch 'sp/fetch-optim'
[gitweb.git] / t / t7300-clean.sh
index dfd118878fd37c096ccd426aa01fa2ac36581367..4037142927ab1b255da90d8f08207841b4e4c993 100755 (executable)
@@ -316,4 +316,15 @@ test_expect_success 'core.excludesfile' '
 
 '
 
+test_expect_success 'removal failure' '
+
+       mkdir foo &&
+       touch foo/bar &&
+       exec <foo/bar &&
+       chmod 0 foo &&
+       test_must_fail git clean -f -d
+
+'
+chmod 755 foo
+
 test_done