summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-03 15:19:02 -0700
committerJunio C Hamano <gitster@pobox.com>2010-08-03 15:19:02 -0700
commit608169da5b9e4d4403b2d82e0a48ee3422134a63 (patch)
tree3d1177c06ab97888bf011fd275df8b31bd145c6c /t
parente7bdd1b90bb37139b37683aa306a9e161cb9e6ce (diff)
parentbe7c6d467e8cc4104e1a15e8ff2d7b207624c685 (diff)
downloadgit-608169da5b9e4d4403b2d82e0a48ee3422134a63.tar.gz
Merge branch 'gp/pack-refs-remove-empty-dirs'
* 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 &&