diff options
author | Nicolas Pitre <nico@cam.org> | 2008-08-22 15:45:53 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-22 22:00:22 -0700 |
commit | 4b480c6716a7d8e20e7e510827ea81e7939f335a (patch) | |
tree | 24c1de905aecbdebfd1c71485de456d0d6660c31 /t/t5300-pack-object.sh | |
parent | a81892dd8c37b6f13793739721b520fee3ce4c2c (diff) | |
download | git-4b480c6716a7d8e20e7e510827ea81e7939f335a.tar.gz |
discard revindex data when pack list changes
This is needed to fix verify-pack -v with multiple pack arguments.
Also, in theory, revindex data (if any) must be discarded whenever
reprepare_packed_git() is called. In practice this is hard to trigger
though.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5300-pack-object.sh')
-rwxr-xr-x | t/t5300-pack-object.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 645583f9d7..83abe5f25e 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -187,6 +187,12 @@ test_expect_success \ test-3-${packname_3}.idx' test_expect_success \ + 'verify pack -v' \ + 'git verify-pack -v test-1-${packname_1}.idx \ + test-2-${packname_2}.idx \ + test-3-${packname_3}.idx' + +test_expect_success \ 'verify-pack catches mismatched .idx and .pack files' \ 'cat test-1-${packname_1}.idx >test-3.idx && cat test-2-${packname_2}.pack >test-3.pack && |