summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-09-01 14:05:05 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-09-01 14:05:05 -0700
commitaf6c6e0b19dc396849e7e09727044ba1a725e811 (patch)
treed8734727ffddc4c6f3faf76cf0868fc93c6b2364 /t
parentMerge branch 'sg/rerere-gc-old-still-used' into maint (diff)
parentpack-refs: remove newly empty directories (diff)
downloadtgif-af6c6e0b19dc396849e7e09727044ba1a725e811.tar.xz
Merge branch 'gp/pack-refs-remove-empty-dirs' into maint
* gp/pack-refs-remove-empty-dirs: pack-refs: remove newly empty directories
Diffstat (limited to 't')
-rwxr-xr-xt/t3210-pack-refs.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh
index 525174013c..cd04361df8 100755
--- a/t/t3210-pack-refs.sh
+++ b/t/t3210-pack-refs.sh
@@ -60,6 +60,12 @@ test_expect_success 'see if git pack-refs --prune remove ref files' '
! test -f .git/refs/heads/f
'
+test_expect_success 'see if git pack-refs --prune removes empty dirs' '
+ git branch r/s/t &&
+ git pack-refs --all --prune &&
+ ! test -e .git/refs/heads/r
+'
+
test_expect_success \
'git branch g should work when git branch g/h has been deleted' \
'git branch g/h &&