Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-11 21:33:33 +0400
committerJunio C Hamano <gitster@pobox.com>2014-09-11 21:33:33 +0400
commit88e7dff93d7010bb2974f8e1599a4e53c73e18f3 (patch)
treee9054e4b6af2e649c628bbf16af8b711a4484729 /t
parentbedd3b4b7b25df0b994abf444ee2136995dfeffa (diff)
parentafd11d3ebcfb18c29840dfa68be32c5215810a77 (diff)
Merge branch 'jk/prune-top-level-refs-after-packing'
After "pack-refs --prune" packed refs at the top-level, it failed to prune them. * 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