aboutsummaryrefslogtreecommitdiff
path: root/t/t7300-clean.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-04-27 11:36:41 -0700
committerJunio C Hamano <gitster@pobox.com>2011-04-27 11:36:41 -0700
commit1de0746d849c64e1f4d160f9915d87d39c0794ea (patch)
tree9b85bfacac5e7098856808a25da0b5511ba66fd6 /t/t7300-clean.sh
parent385185403e74f3b4b52c33bb263ca735c512f66f (diff)
parent0235017eafa8dfc3a7353b7091ad5109d0beb7a5 (diff)
downloadgit-1de0746d849c64e1f4d160f9915d87d39c0794ea.tar.gz
git-1de0746d849c64e1f4d160f9915d87d39c0794ea.tar.xz
Merge branch 'ar/clean-rmdir-empty'
* ar/clean-rmdir-empty: clean: unreadable directory may still be rmdir-able if it is empty
Diffstat (limited to 't/t7300-clean.sh')
-rwxr-xr-xt/t7300-clean.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 7e1be4440..800b5368a 100755
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
@@ -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