summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-09-19 14:05:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-19 14:05:12 -0700
commitfb6f843a8fbce633a4a1f39f4b7b2a862e5cb855 (patch)
tree2fe9416be5b036455efcdc5cb14c206bdc1c7ba0 /t
parentMerge branch 'jk/fast-import-fixes' into maint (diff)
parentpack-refs: prune top-level refs like "refs/foo" (diff)
downloadtgif-fb6f843a8fbce633a4a1f39f4b7b2a862e5cb855.tar.xz
Merge branch 'jk/prune-top-level-refs-after-packing' into maint
* jk/prune-top-level-refs-after-packing: pack-refs: prune top-level refs like "refs/foo"
Diffstat (limited to 't')
-rwxr-xr-xt/t3210-pack-refs.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh
index 1a2080e3dc..3a017bf437 100755
--- a/t/t3210-pack-refs.sh
+++ b/t/t3210-pack-refs.sh
@@ -151,4 +151,11 @@ test_expect_success 'delete ref while another dangling packed ref' '
test_cmp /dev/null result
'
+test_expect_success 'pack ref directly below refs/' '
+ git update-ref refs/top HEAD &&
+ git pack-refs --all --prune &&
+ grep refs/top .git/packed-refs &&
+ test_path_is_missing .git/refs/top
+'
+
test_done