aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-19 01:31:42 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-19 01:31:42 -0800
commit50c19c777d7b219914b4149e9a465542e3cb5700 (patch)
tree8f324bd06f6c515dd28888a2e619917e3bcc2513 /t
parentb56735e797d569d039781f7fcb98bc4110d76bb7 (diff)
parent7c0be4da5cab4efd89ee6583f7009d648a75a725 (diff)
downloadgit-50c19c777d7b219914b4149e9a465542e3cb5700.tar.gz
git-50c19c777d7b219914b4149e9a465542e3cb5700.tar.xz
Merge branch 'maint'
* maint: rm: fix bug in recursive subdirectory removal Documentation: describe --thin more accurately
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 76b1bb454..0aaf0ad84 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