diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-09-01 14:05:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-01 14:05:05 -0700 |
commit | af6c6e0b19dc396849e7e09727044ba1a725e811 (patch) | |
tree | d8734727ffddc4c6f3faf76cf0868fc93c6b2364 /t | |
parent | Merge branch 'sg/rerere-gc-old-still-used' into maint (diff) | |
parent | pack-refs: remove newly empty directories (diff) | |
download | tgif-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-x | t/t3210-pack-refs.sh | 6 |
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 && |