Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-05 01:57:06 +0400
committerJunio C Hamano <gitster@pobox.com>2011-05-05 01:57:06 +0400
commit391b4933442dd07507a5de112092eaa4efc902bb (patch)
treebae576a334e6e8941aa3997555b3c7e78aa4b242 /t
parenta3402c18b66347a9357cdb1af5a581f1ecc5264d (diff)
parent0235017eafa8dfc3a7353b7091ad5109d0beb7a5 (diff)
Merge branch 'ar/clean-rmdir-empty' into maint
* ar/clean-rmdir-empty: clean: unreadable directory may still be rmdir-able if it is empty
Diffstat (limited to 't')
-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 7e1be44402..800b5368a5 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