summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 14:53:50 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 14:53:50 -0800
commitcb16bcc36965f28845e4fae15c36280a2506f1be (patch)
treea1acd0c9c1b89d30749f4414d727064f1c416fd5 /t
parentMerge branch 'rs/optim-text-wrap' into maint-1.6.6 (diff)
parentrm: fix bug in recursive subdirectory removal (diff)
downloadtgif-cb16bcc36965f28845e4fae15c36280a2506f1be.tar.xz
Merge branch 'jk/maint-rmdir-fix' into maint-1.6.6
* jk/maint-rmdir-fix: rm: fix bug in recursive subdirectory removal
Diffstat (limited to 't')
-rwxr-xr-xt/t3600-rm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh
index 76b1bb4545..0aaf0ad84b 100755
--- a/t/t3600-rm.sh
+++ b/t/t3600-rm.sh
@@ -271,4 +271,12 @@ test_expect_success 'choking "git rm" should not let it die with cruft' '
test "$status" != 0
'
+test_expect_success 'rm removes subdirectories recursively' '
+ mkdir -p dir/subdir/subsubdir &&
+ echo content >dir/subdir/subsubdir/file &&
+ git add dir/subdir/subsubdir/file &&
+ git rm -f dir/subdir/subsubdir/file &&
+ ! test -d dir
+'
+
test_done