diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2013-04-22 21:52:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-01 15:33:10 -0700 |
commit | c995de61cd218f7ce5119d340ac7d8282b2e2d73 (patch) | |
tree | aebc8cbaa7a08f39ce6dbc482662a18c00bb4f30 | |
parent | refs: change how packed refs are deleted (diff) | |
download | tgif-c995de61cd218f7ce5119d340ac7d8282b2e2d73.tar.xz |
t3211: demonstrate loss of peeled refs if a packed ref is deleted
Add a test that demonstrates that the peeled values recorded in
packed-refs are lost if a packed ref is deleted. (The code in
repack_without_ref() doesn't even attempt to write peeled refs.) This
will be fixed in a moment.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | t/t3211-peel-ref.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t3211-peel-ref.sh b/t/t3211-peel-ref.sh index d4d7792eae..cca1acb184 100755 --- a/t/t3211-peel-ref.sh +++ b/t/t3211-peel-ref.sh @@ -61,4 +61,13 @@ test_expect_success 'refs are peeled outside of refs/tags (old packed)' ' test_cmp expect actual ' +test_expect_failure 'peeled refs survive deletion of packed ref' ' + git pack-refs --all && + cp .git/packed-refs fully-peeled && + git branch yadda && + git pack-refs --all && + git branch -d yadda && + test_cmp fully-peeled .git/packed-refs +' + test_done |